• Unwanted separators in radiobuttons

    From Luc@21:1/5 to All on Tue Oct 25 21:31:45 2022
    I have these radiobuttons with a separation between them:

    Screenshot:
    https://a.pomf.cat/rojnkv.png

    Note that they are gray. Nothing in my code tells them to be gray
    so I guess it's some default thing.

    I tried all options in the manual page and can't get rid of them.

    Is it possible to remove them? Or "groom" them differently?

    TIA

    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luc@21:1/5 to Rich on Tue Oct 25 23:00:13 2022
    On Wed, 26 Oct 2022 01:17:48 -0000 (UTC), Rich wrote:

    Works fine here (no separators):

    https://postimg.cc/jChZQv3t

    produced from this code:

    $ rlwrap wish
    % foreach i {1 2 3 4 5 6 7} { lappend w [radiobutton .rb$i -text $i] }
    % pack {*}$w -side left
    %

    Which is why it is **always** better to post a short example code
    snippet that creates the issue.


    OK. So please try this slightly different version of your own code:

    foreach i {1 2 3 4 5 6 7} { lappend w [radiobutton .rb$i -text $i -background #ffffff] }
    pack {*}$w -side left


    I really want it to be white, so... :-)

    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Luc on Wed Oct 26 01:17:48 2022
    Luc <[email protected]> wrote:
    I have these radiobuttons with a separation between them:

    Screenshot:
    https://a.pomf.cat/rojnkv.png

    Note that they are gray. Nothing in my code tells them to be gray
    so I guess it's some default thing.

    I tried all options in the manual page and can't get rid of them.

    Is it possible to remove them? Or "groom" them differently?

    Works fine here (no separators):

    https://postimg.cc/jChZQv3t

    produced from this code:

    $ rlwrap wish
    % foreach i {1 2 3 4 5 6 7} { lappend w [radiobutton .rb$i -text $i] }
    % pack {*}$w -side left
    %

    Which is why it is **always** better to post a short example code
    snippet that creates the issue.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Luc on Wed Oct 26 02:36:03 2022
    Luc <[email protected]> wrote:
    On Wed, 26 Oct 2022 01:17:48 -0000 (UTC), Rich wrote:

    Works fine here (no separators):

    https://postimg.cc/jChZQv3t

    produced from this code:

    $ rlwrap wish
    % foreach i {1 2 3 4 5 6 7} { lappend w [radiobutton .rb$i -text $i] } >> % pack {*}$w -side left
    %

    Which is why it is **always** better to post a short example code
    snippet that creates the issue.


    OK. So please try this slightly different version of your own code:

    foreach i {1 2 3 4 5 6 7} { lappend w [radiobutton .rb$i -text $i -background #ffffff] }
    pack {*}$w -side left

    I really want it to be white, so... :-)

    Which is fine, but we can't know that on the other side of usenet
    unless you tell us. :)

    foreach i {1 2 3 4 5 6 7} {
    lappend w [radiobutton .rb$i -text $i -background #ffffff -highlightthickness 0]
    }
    pack {*}$w -side left

    And no faint grey 'separators'.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luc@21:1/5 to Rich on Wed Oct 26 00:03:35 2022
    On Wed, 26 Oct 2022 02:36:03 -0000 (UTC), Rich wrote:

    foreach i {1 2 3 4 5 6 7} {
    lappend w [radiobutton .rb$i -text $i -background #ffffff -highlightthickness 0] }
    pack {*}$w -side left

    And no faint grey 'separators'.


    Yes, that solves it.

    Thank you once again.


    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)