[issue6549] ttk.Style not translating some Tcl options

Ethan Furman report at bugs.python.org
Thu Sep 22 00:21:49 CEST 2011


Ethan Furman <ethan at stoneleaf.us> added the comment:

The changes to Style.configure were not good.  Corrected so the (possibly empty) result is returned when a query is made but not when configuration is set.

Two patches: one for the element_names issue, one for the configure issue.

Question:  Does it ever make sense to do both a query and a configuration update in the same call?  I don't think it is:

--> ttk.Style.configure('TButton', 'relief', relief='sunken'
'raised'
--> s.configure('TButton','relief')
'raised'

Does it make sense to raise an exception in configure if both query_opt and kw specified?

----------
Added file: http://bugs.python.org/file23223/ttk_style_fixes.zip

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6549>
_______________________________________


More information about the Python-bugs-list mailing list