|
From: Jeff H. <je...@Ac...> - 2005-09-26 17:08:56
|
Sori Schwimmer wrote:
> --- Jeff Hobbs <je...@Ac...> wrote:
> > OK, the correct call would be:
> >
> > bt2.tk.call('style', 'map', 'TButton',
> > '-background', '{active green}')
> >
> > You require the named style, and in this case you want to
> > apply it to TButton (the class of the themed button). Note
> > that it really affects the background drawn, not the highlight
> > element.
>
> Thanks for your answer. That's not it though; I end up
> with:
>
> _tkinter.TclError: State map must have an even number
> of elements
>
> which is odd...
My bad, that should be 'active green' (no {}).
Jeff
|