[Python-checkins] r69047 - in sandbox/trunk/ttk-gsoc/samples: dirbrowser.py widget_state.py
guilherme.polo
python-checkins at python.org
Wed Jan 28 13:41:58 CET 2009
Author: guilherme.polo
Date: Wed Jan 28 13:41:58 2009
New Revision: 69047
Log:
Adjusts to work with the 0.3 release.
Modified:
sandbox/trunk/ttk-gsoc/samples/dirbrowser.py
sandbox/trunk/ttk-gsoc/samples/widget_state.py
Modified: sandbox/trunk/ttk-gsoc/samples/dirbrowser.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/samples/dirbrowser.py (original)
+++ sandbox/trunk/ttk-gsoc/samples/dirbrowser.py Wed Jan 28 13:41:58 2009
@@ -19,7 +19,7 @@
return
path = tree.set(node, "fullpath")
- tree.delete(tree.get_children(node))
+ tree.delete(*tree.get_children(node))
parent = tree.parent(node)
special_dirs = [] if parent else glob.glob('.') + glob.glob('..')
Modified: sandbox/trunk/ttk-gsoc/samples/widget_state.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/samples/widget_state.py (original)
+++ sandbox/trunk/ttk-gsoc/samples/widget_state.py Wed Jan 28 13:41:58 2009
@@ -19,7 +19,7 @@
self.style = ttk.Style()
# get default font size and family
- btn_font = self.style.lookup("TButton", "-font")
+ btn_font = self.style.lookup("TButton", "font")
fsize = str(self.tk.eval("font configure %s -size" % btn_font))
self.font_family = self.tk.eval("font configure %s -family" % btn_font)
if ' ' in self.font_family:
More information about the Python-checkins
mailing list