Message204842
| Author |
terry.reedy |
| Recipients |
Arfrever, gpolo, klappnase, serhiy.storchaka, terry.reedy |
| Date |
2013年11月30日.20:48:19 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1385844500.04.0.129163347368.issue17397@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
As a non-tcl/tk user except via tkinter, I am not convinced that we should add a near-duplicate function. The *Python* doc for ttk.Style.theme_names says "Returns a list of all known themes." If it does not do that, which it seems not to, it should be changed (whether the change is called a fix or enhancement).
From the referenced Epler post, the situation seems more complicated on the ttk side in that ttk has two similar functions: 'style theme_names', which only reports 'loaded' names, and 'themes' which reports 'loaded and available', though 'available' seems vague and dependent on strange package calls. For Python, a parameter for one function would suffice to restrict or augment the list returned, if indeed the option is needed.
Are 'unloaded but available' themes really available to use? Does Style.theme_use(available_name) work? If so, it seems to me that available_name should be reported by theme_names. If not, what is the use of knowing it?
Most any patch will need a doc patch. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年11月30日 20:48:20 | terry.reedy | set | recipients:
+ terry.reedy, klappnase, gpolo, Arfrever, serhiy.storchaka |
| 2013年11月30日 20:48:20 | terry.reedy | set | messageid: <1385844500.04.0.129163347368.issue17397@psf.upfronthosting.co.za> |
| 2013年11月30日 20:48:20 | terry.reedy | link | issue17397 messages |
| 2013年11月30日 20:48:19 | terry.reedy | create |
|