Message204908
> 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 ? |
|
Date |
User |
Action |
Args |
2013-12-01 10:54:38 | klappnase | set | recipients:
+ klappnase, terry.reedy, gpolo, Arfrever, serhiy.storchaka |
2013-12-01 10:54:38 | klappnase | set | messageid: <1385895278.91.0.920908263303.issue17397@psf.upfronthosting.co.za> |
2013-12-01 10:54:38 | klappnase | link | issue17397 messages |
2013-12-01 10:54:38 | klappnase | create | |
|