[Python-checkins] r65937 - sandbox/trunk/ttk-gsoc/src/2.x/ttk.py

guilherme.polo python-checkins at python.org
Thu Aug 21 19:34:36 CEST 2008


Author: guilherme.polo
Date: Thu Aug 21 19:34:36 2008
New Revision: 65937

Log:
mapping these results to unicode now, since neither _format_optdict nor _format_mapdict impose restrictions on key value

Modified:
   sandbox/trunk/ttk-gsoc/src/2.x/ttk.py

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	Thu Aug 21 19:34:36 2008
@@ -216,11 +216,11 @@
     for name, opts in settings.iteritems():
         # will format specific keys according to Tcl code
         if opts.get('configure'): # format 'configure'
-            s = ' '.join(map(str, _format_optdict(opts['configure'], True)))
+            s = ' '.join(map(unicode, _format_optdict(opts['configure'], True)))
             script.append("ttk::style configure %s %s;" % (name, s))
 
         if opts.get('map'): # format 'map'
-            s = ' '.join(map(str, _format_mapdict(opts['map'], True)))
+            s = ' '.join(map(unicode, _format_mapdict(opts['map'], True)))
             script.append("ttk::style map %s %s;" % (name, s))
 
         if 'layout' in opts: # format 'layout' which may be empty


More information about the Python-checkins mailing list