[Python-checkins] r66168 - in sandbox/trunk/ttk-gsoc/src: 2.x/test/test_other_widgets.py 2.x/test/test_style.py 2.x/test/test_treeview.py 3.x/test/test_other_widgets.py 3.x/test/test_style.py 3.x/test/test_treeview.py

guilherme.polo python-checkins at python.org
Wed Sep 3 00:01:39 CEST 2008


Author: guilherme.polo
Date: Wed Sep  3 00:01:39 2008
New Revision: 66168

Log:
Some fixes in order to work under Windows and possibly somewhere else.


Modified:
   sandbox/trunk/ttk-gsoc/src/2.x/test/test_other_widgets.py
   sandbox/trunk/ttk-gsoc/src/2.x/test/test_style.py
   sandbox/trunk/ttk-gsoc/src/2.x/test/test_treeview.py
   sandbox/trunk/ttk-gsoc/src/3.x/test/test_other_widgets.py
   sandbox/trunk/ttk-gsoc/src/3.x/test/test_style.py
   sandbox/trunk/ttk-gsoc/src/3.x/test/test_treeview.py

Modified: sandbox/trunk/ttk-gsoc/src/2.x/test/test_other_widgets.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/2.x/test/test_other_widgets.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/2.x/test/test_other_widgets.py	Wed Sep  3 00:01:39 2008
@@ -126,7 +126,9 @@
 
         height = self.combo.winfo_height()
         self._show_drop_down_listbox()
+        self.combo.update()
         self.combo.event_generate('<Return>')
+        self.combo.update()
 
         self.failUnless(success)
 

Modified: sandbox/trunk/ttk-gsoc/src/2.x/test/test_style.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/2.x/test/test_style.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/2.x/test/test_style.py	Wed Sep  3 00:01:39 2008
@@ -7,7 +7,8 @@
 class StyleTest(unittest.TestCase):
 
     def setUp(self):
-        self.style = ttk.Style()
+        root = Tkinter.Tk()
+        self.style = ttk.Style(root)
 
     def tearDown(self):
         self.style.master.destroy()

Modified: sandbox/trunk/ttk-gsoc/src/2.x/test/test_treeview.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/2.x/test/test_treeview.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/2.x/test/test_treeview.py	Wed Sep  3 00:01:39 2008
@@ -214,7 +214,7 @@
 
         success = []
         commands = self.tv.master._tclCommands
-        self.tv.heading('#0', command=self.tv.heading('#0', command=None))
+        self.tv.heading('#0', command=str(self.tv.heading('#0', command=None)))
         self.failUnlessEqual(commands, self.tv.master._tclCommands)
         simulate_heading_click(5, 5)
         if not success:

Modified: sandbox/trunk/ttk-gsoc/src/3.x/test/test_other_widgets.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/3.x/test/test_other_widgets.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/3.x/test/test_other_widgets.py	Wed Sep  3 00:01:39 2008
@@ -126,7 +126,9 @@
 
         height = self.combo.winfo_height()
         self._show_drop_down_listbox()
+        self.combo.update()
         self.combo.event_generate('<Return>')
+        self.combo.update()
 
         self.failUnless(success)
 

Modified: sandbox/trunk/ttk-gsoc/src/3.x/test/test_style.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/3.x/test/test_style.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/3.x/test/test_style.py	Wed Sep  3 00:01:39 2008
@@ -7,7 +7,8 @@
 class StyleTest(unittest.TestCase):
 
     def setUp(self):
-        self.style = ttk.Style()
+        root = tkinter.Tk()
+        self.style = ttk.Style(root)
 
     def tearDown(self):
         self.style.master.destroy()

Modified: sandbox/trunk/ttk-gsoc/src/3.x/test/test_treeview.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/3.x/test/test_treeview.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/3.x/test/test_treeview.py	Wed Sep  3 00:01:39 2008
@@ -214,7 +214,7 @@
 
         success = []
         commands = self.tv.master._tclCommands
-        self.tv.heading('#0', command=self.tv.heading('#0', command=None))
+        self.tv.heading('#0', command=str(self.tv.heading('#0', command=None)))
         self.failUnlessEqual(commands, self.tv.master._tclCommands)
         simulate_heading_click(5, 5)
         if not success:


More information about the Python-checkins mailing list