Tkinter option_add for menu radiobutton

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Greschke

    #1

    Tkinter option_add for menu radiobutton

    Root.option_add ("*Menu.Font ", "Veranda 9")

    as an example, works fine in my program.

    Root.option_add ("*Radiobutton* selectColor", "black")

    also works fine for regular radiobuttons. What I can't
    do is get the selectColor of the radiobutton's in the
    menu to be black...the x.add_radiobutt on() ones.

    Root.option_add ("*Menu.Radiobu tton*selectColo r", "black")... nope
    Root.option_add ("*Menu*selectC olor", "black")... no change
    Others...no luck yet.

    What would the correct command be? I can do a selectcolor = "black"
    in the declaration of each button, but...

    Thanks!

    Bob


  • Bob Greschke

    #2
    Re: Tkinter option_add for menu radiobutton

    "Eric Brunel" <eric_brunel@de spammed.com> wrote in message
    news:opsl6qgpu1 rqur0o@eb.pragm adev...[color=blue]
    > On Sun, 13 Feb 2005 15:31:18 -0700, Bob Greschke <bob@passcal.nm t.edu>
    > wrote:
    > [snip][color=green]
    >> Root.option_add ("*Radiobutton* selectColor", "black")
    >>
    >> also works fine for regular radiobuttons. What I can't
    >> do is get the selectColor of the radiobutton's in the
    >> menu to be black...the x.add_radiobutt on() ones.
    >>
    >> Root.option_add ("*Menu.Radiobu tton*selectColo r", "black")... nope
    >> Root.option_add ("*Menu*selectC olor", "black")... no change[/color]
    >
    > Strange... The last one works for me (as it should - see
    > http://www.tcl.tk/man/tcl8.4/TkCmd/menu.htm). What platform are you on and
    > what is your tcl/tk version?
    > - Eric Brunel -[/color]

    Doh! You're right. Now it is here too. I must have been typing something
    wrong...again. This was Python2.3 and whatever version of tcl/tk that comes
    with it on Linux.

    Thanks!


    Comment

    Working...