ttk styles

Peter peter.milliken at gmail.com
Thu Mar 17 18:59:55 EDT 2011


Thanks for the link Malcolm, I'll have a look at it. What is
particularly interesting (at first glance), is that the author has
"mixed" Tkinter with ttk as it suited i.e. look at this line:

f1 = tkinter.Frame(nb, background="red")

If ttk was being used purely (from tkinter import *; from ttk import
*) then the "background" keyword is nolonger available/recognised and
the code would have to use ttk styles to change the colour - I find it
somewhat disappointing that the author felt this approach was
necessary as it tends to dilute the example by not keeping everything
purely ttk - modifying the style to change the background of the Frame
statements would have made it an even better example!

I will repost the answer if I can work it out using this example code
- thanks again! :-)

Peter

On Mar 18, 9:14 am, pyt... at bdurham.com wrote:
> Peter,
>
> Sorry I can't be of much help, but I share the same interest as you.
>
> There may be some teaser info here although I can't claim to understand
> the technique.http://www.java2s.com/Open-Source/Python/3.1.2-Python/Demo/Demo/tkint...
>
> If you have any links/documentation to share, I would love to see what
> you've found so far.
>
> Malcolm




More information about the Python-list mailing list