From: Why Tea on 30 Apr 2010 01:17 How do you set the background color of a menubutton in focus? I tried I read the manual many times and tried many things, but still couldn't get it to work. This is what I've tried: menubutton $base.fra.men \ -menu .mainWin.fra.men.m -padx 7 -pady 5 -font $::menu_font \ -image $::some_image -relief groove -highlightcolor Green /Why Tea
From: Why Tea on 30 Apr 2010 02:35 On Apr 30, 3:17 pm, Why Tea <ytl...(a)gmail.com> wrote: > How do you set the background color of a menubutton in focus? > > I tried I read the manual many times and tried many things, but > still couldn't get it to work. This is what I've tried: > > menubutton $base.fra.men \ > -menu .mainWin.fra.men.m -padx 7 -pady 5 -font > $::menu_font \ > -image $::some_image -relief groove -highlightcolor > Green > > /Why Tea Please ignore. I've found a solution to the problem.
From: Alexandre Ferrieux on 30 Apr 2010 04:09 On Apr 30, 8:35 am, Why Tea <ytl...(a)gmail.com> wrote: > On Apr 30, 3:17 pm, Why Tea <ytl...(a)gmail.com> wrote: > > > How do you set the background color of a menubutton in focus? > > > I tried I read the manual many times and tried many things, but > > still couldn't get it to work. This is what I've tried: > > > menubutton $base.fra.men \ > > -menu .mainWin.fra.men.m -padx 7 -pady 5 -font > > $::menu_font \ > > -image $::some_image -relief groove -highlightcolor > > Green > > > /Why Tea > > Please ignore. I've found a solution to the problem. Oh please, regardless of the simplicity, do share it. Personally, I hate it when I google for a random question, dig out a single forum mentioning it, and see only people saying "never mind, problem solved" without giving the solution. -Alex
From: Why Tea on 30 Apr 2010 08:58 On Apr 30, 6:09 pm, Alexandre Ferrieux <alexandre.ferri...(a)gmail.com> wrote: > On Apr 30, 8:35 am, Why Tea <ytl...(a)gmail.com> wrote: > > > > > On Apr 30, 3:17 pm, Why Tea <ytl...(a)gmail.com> wrote: > > > > How do you set the background color of a menubutton in focus? > > > > I tried I read the manual many times and tried many things, but > > > still couldn't get it to work. This is what I've tried: > > > > menubutton $base.fra.men \ > > > -menu .mainWin.fra.men.m -padx 7 -pady 5 -font > > > $::menu_font \ > > > -image $::some_image -relief groove -highlightcolor > > > Green > > > > /Why Tea > > > Please ignore. I've found a solution to the problem. > > Oh please, regardless of the simplicity, do share it. > > Personally, I hate it when I google for a random question, dig out a > single forum mentioning it, and see only people saying "never mind, > problem solved" without giving the solution. > > -Alex I used the wrong option, it should be activebackground. The following works: $base.fra.men configure -activebackground Green
|
Pages: 1 Prev: How to reset an Interpreter? Next: Tk error: "Failed to register menu window class" - when ? |