[Python-checkins] r63984 - sandbox/trunk/ttk-gsoc/samples/combo_themes.py

guilherme.polo python-checkins at python.org
Fri Jun 6 13:45:08 CEST 2008


Author: guilherme.polo
Date: Fri Jun  6 13:45:08 2008
New Revision: 63984

Log:
Removed XXX comment, the bug has been fixed in py3k, python-trunk and release25-maint repos now.

Modified:
   sandbox/trunk/ttk-gsoc/samples/combo_themes.py

Modified: sandbox/trunk/ttk-gsoc/samples/combo_themes.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/samples/combo_themes.py	(original)
+++ sandbox/trunk/ttk-gsoc/samples/combo_themes.py	Fri Jun  6 13:45:08 2008
@@ -19,16 +19,13 @@
             self.style.theme_use(newtheme)
 
     def _setup_widgets(self):
-        # XXX Not how we have to convert from tuple to list (to add a new
-        #     element) and then convert to tuple again so Combobox displays
-        #     it correctly. This shouldn't be needed, and I will see what
-        #     can be done towards this.
         themes = list(self.style.theme_names())
         themes.insert(0, "Pick a theme")
         # Create a readonly Combobox which will display 4 values at max,
         # which will cause it to create a scrollbar if there are more
         # than 4 values in total.
-        themes_combo = ttk.Combobox(self, values=themes, state="readonly", height=4)
+        themes_combo = ttk.Combobox(self, values=themes, state="readonly",
+                                    height=4)
         themes_combo.set(themes[0]) # sets the combobox value to "Pick a theme"
         # Combobox widget generates a <<ComboboxSelected>> virtual event
         # when the user selects an element. This event is generated after


More information about the Python-checkins mailing list