Kaydet (Commit) b64c989e authored tarafından Guilherme Polo's avatar Guilherme Polo

Restore the previous geometry before leaving the test

üst fee1c7f4
...@@ -167,14 +167,15 @@ class LabeledScaleTest(unittest.TestCase): ...@@ -167,14 +167,15 @@ class LabeledScaleTest(unittest.TestCase):
x.update() x.update()
width, height = x.master.winfo_width(), x.master.winfo_height() 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.value = 3
x.update() 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']), self.failUnlessEqual(int(x.label.place_info()['x']),
x.scale.coords()[0]) x.scale.coords()[0])
# Reset geometry
x.master.wm_geometry("%dx%d" % (width, height)) x.master.wm_geometry("%dx%d" % (width, height))
x.destroy() x.destroy()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment