[Python-checkins] r63868 - in sandbox/trunk/ttk-gsoc: Doc/library/ttk.rst src/2.x/ttk.py src/3.x/ttk.py
guilherme.polo
python-checkins at python.org
Sun Jun 1 21:56:09 CEST 2008
Author: guilherme.polo
Date: Sun Jun 1 21:56:09 2008
New Revision: 63868
Log:
Fixed an option name at ttk.rst;
Updated method insert of Treeview so it accept values other than
strings.
Modified:
sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst
sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
sandbox/trunk/ttk-gsoc/src/3.x/ttk.py
Modified: sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst
==============================================================================
--- sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst (original)
+++ sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst Sun Jun 1 21:56:09 2008
@@ -695,7 +695,7 @@
+----------------+--------------------------------------------------------+
| option | description |
+================+========================================================+
- | column | A list of column identifiers, specifying the number of |
+ | columns | A list of column identifiers, specifying the number of |
| | columns and their names. |
+----------------+--------------------------------------------------------+
| displaycolumns | A list of column identifiers (either symbolic or |
Modified: sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/2.x/ttk.py (original)
+++ sandbox/trunk/ttk-gsoc/src/2.x/ttk.py Sun Jun 1 21:56:09 2008
@@ -1185,6 +1185,7 @@
opts, values = _format_optdict(kw, ignore='values'), kw.get('values')
# values may need special formatting if any value contains a space
if values:
+ values = map(str, values)
opts += ("-values",
' '.join(('{%s}' if ' ' in v else '%s') % v for v in values))
if iid:
Modified: sandbox/trunk/ttk-gsoc/src/3.x/ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/3.x/ttk.py (original)
+++ sandbox/trunk/ttk-gsoc/src/3.x/ttk.py Sun Jun 1 21:56:09 2008
@@ -1185,6 +1185,7 @@
opts, values = _format_optdict(kw, ignore='values'), kw.get('values')
# values may need special formatting if any value contains a space
if values:
+ values = map(str, values)
opts += ("-values",
' '.join(('{%s}' if ' ' in v else '%s') % v for v in values))
if iid:
More information about the Python-checkins
mailing list