[Python-checkins] r62840 - sandbox/trunk/ttk-gsoc/Lib/lib-tk/Ttk.py
guilherme.polo
python-checkins at python.org
Thu May 8 00:07:50 CEST 2008
Author: guilherme.polo
Date: Thu May 8 00:07:50 2008
New Revision: 62840
Log:
Updated map and configure (Style) docstrings so they say what they can do more accurately. Removed an unneeded name 'r' at _dict_from_layouttuple.
Modified:
sandbox/trunk/ttk-gsoc/Lib/lib-tk/Ttk.py
Modified: sandbox/trunk/ttk-gsoc/Lib/lib-tk/Ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/Lib/lib-tk/Ttk.py (original)
+++ sandbox/trunk/ttk-gsoc/Lib/lib-tk/Ttk.py Thu May 8 00:07:50 2008
@@ -220,11 +220,9 @@
if opt == 'children':
ch = _dict_from_layouttuple(val)
- r = [(ch.items()[0])]
- else:
- r = val
+ val = [(ch.items()[0])]
- res[name][opt] = r
+ res[name][opt] = val
return res
@@ -260,7 +258,8 @@
def configure(self, style, **kw):
- """Sets the default value of the specified option(s) in style.
+ """Query or sets the default value of the specified option(s) in
+ style.
Each key in kw is an option and each value is either a string or
a sequence identifying the value for that option."""
@@ -269,7 +268,8 @@
def map(self, style, **kw):
- """Sets dynamic values of the specified option(s) in given style.
+ """Query or sets dynamic values of the specified option(s) in
+ style.
Each key in kw is an option and each value should be a sequence.
Each of these sequences have to have a state, or a group of states,
More information about the Python-checkins
mailing list