klappnase added the comment:

> Are 'unloaded but available' themes really available to use?

Yes.

> Does Style.theme_use(available_name) work?

Yes.

> If so, it seems to me that available_name should
> be reported by theme_names.

I agree, one should think so. I am not 100% certain about that, but to me it 
seems that on the tcl side ttk:themes is newer and thus preferable to theme 
names which maybe is only still there for backwards compatibility.

Since as a Tkinter user I like Tkinter methods to behave like their Tcl/Tk 
counterparts (which, if nothing else, helps a lot in reading and understanding  
tcl code/documentation (and possibly "translating" tcl code into Python)) I had 
rather kept theme_names() intact to avoid confusion. Maybe there could simply a 
line like "Deprecated since Python-xy, use themes() instead." be added to 
theme_names' doc string ?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17397>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to