[Python-checkins] r64514 - sandbox/trunk/ttk-gsoc/samples/theming.py

guilherme.polo python-checkins at python.org
Tue Jun 24 18:44:24 CEST 2008


Author: guilherme.polo
Date: Tue Jun 24 18:44:23 2008
New Revision: 64514

Log:
Horizontal/Vertical layouts wouldn't reset their layout, fixed now.

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

Modified: sandbox/trunk/ttk-gsoc/samples/theming.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/samples/theming.py	(original)
+++ sandbox/trunk/ttk-gsoc/samples/theming.py	Tue Jun 24 18:44:23 2008
@@ -232,8 +232,8 @@
     def _reset_layout(self):
         """Reset the layout for current selected widget."""
         widget = self._current_widget
-        self._style.layout(widget['layout'],
-            self._style.layout(widget['widget'].winfo_class()))
+        orig_name = widget['layout'][widget['layout'].find('.', 1) + 1:]
+        self._style.layout(widget['layout'], self._style.layout(orig_name))
         self._update_layout_text()
 
     def __create_menu(self):


More information about the Python-checkins mailing list