[Python-checkins] r69211 - python/trunk/Lib/lib-tk/test/test_ttk/test_extensions.py
guilherme.polo
python-checkins at python.org
Mon Feb 2 21:23:30 CET 2009
Author: guilherme.polo
Date: Mon Feb 2 21:23:29 2009
New Revision: 69211
Log:
Restore the previous geometry before leaving the test
Modified:
python/trunk/Lib/lib-tk/test/test_ttk/test_extensions.py
Modified: python/trunk/Lib/lib-tk/test/test_ttk/test_extensions.py
==============================================================================
--- python/trunk/Lib/lib-tk/test/test_ttk/test_extensions.py (original)
+++ python/trunk/Lib/lib-tk/test/test_ttk/test_extensions.py Mon Feb 2 21:23:29 2009
@@ -167,14 +167,15 @@
x.update()
width, height = x.master.winfo_width(), x.master.winfo_height()
- width, height = width * 2, height * 2
+ width_new, height_new = width * 2, height * 2
x.value = 3
x.update()
- x.master.wm_geometry("%dx%d" % (width, height))
+ x.master.wm_geometry("%dx%d" % (width_new, height_new))
self.failUnlessEqual(int(x.label.place_info()['x']),
x.scale.coords()[0])
+ # Reset geometry
x.master.wm_geometry("%dx%d" % (width, height))
x.destroy()
More information about the Python-checkins
mailing list