Hi,

Thus spoketh Igor Novikov <igor.e.novi...@gmail.com> 
unto us on Fri, 29 Oct 2010 22:31:11 +0300:

>
> 
> Pixmap themes should be fixed before using with Ttk in tk8.5/8.6
> because they use 'tile' namespace but should be 'ttk'
> To enable theme you need running following command:
> 
> widget.tk.call('lappend', 'auto_path', theme_parent_dir)   #to make
> theme accessible for tk
> widget.tk.call('ttk::setTheme', theme_name)                     #to set
> theme using theme name
> 

Thanks, you're right, it works. I was fooled by the theme names
missing from the output of theme_names(). The pixmap themes only appear
in theme_names() after they have been loaded once, which seems a little
odd to me. It would be nice if themes that are installed somewhere in
auto_path would be returned by theme_names() automagically, so an
application could show a list of installed themes and the user can pick
one.

Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

A little suffering is good for the soul.
                -- Kirk, "The Corbomite Maneuver", stardate 1514.0
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to