[Python-checkins] r69049 - in sandbox/trunk/ttk-gsoc/src: 2.x/test/test_functions.py 2.x/test/test_widgets.py 2.x/ttk.py 3.x/test/test_functions.py 3.x/test/test_widgets.py 3.x/ttk.py

guilherme.polo python-checkins at python.org
Wed Jan 28 14:08:21 CET 2009


Author: guilherme.polo
Date: Wed Jan 28 14:08:21 2009
New Revision: 69049

Log:
Normalizing whitespace.


Modified:
   sandbox/trunk/ttk-gsoc/src/2.x/test/test_functions.py
   sandbox/trunk/ttk-gsoc/src/2.x/test/test_widgets.py
   sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
   sandbox/trunk/ttk-gsoc/src/3.x/test/test_functions.py
   sandbox/trunk/ttk-gsoc/src/3.x/test/test_widgets.py
   sandbox/trunk/ttk-gsoc/src/3.x/ttk.py

Modified: sandbox/trunk/ttk-gsoc/src/2.x/test/test_functions.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/2.x/test/test_functions.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/2.x/test/test_functions.py	Wed Jan 28 14:08:21 2009
@@ -131,7 +131,7 @@
         # image type expects at least an image name, so this should raise
         # IndexError since it tries to access the index 0 of an empty tuple
         self.failUnlessRaises(IndexError, ttk._format_elemcreate, 'image')
-        
+
         # don't format returned values as a tcl script
         # minimum acceptable for image type
         self.failUnlessEqual(ttk._format_elemcreate('image', False, 'test'),

Modified: sandbox/trunk/ttk-gsoc/src/2.x/test/test_widgets.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/2.x/test/test_widgets.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/2.x/test/test_widgets.py	Wed Jan 28 14:08:21 2009
@@ -284,7 +284,7 @@
 
         self.entry.delete(0, 'end')
         self.failUnlessEqual(self.entry.get(), '')
-        
+
         self.entry.insert('end', 'a1b')
         self.failUnlessEqual(self.entry.validate(), False)
         self.failUnlessEqual(self.entry.state(), ('invalid', ))

Modified: sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/2.x/ttk.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/2.x/ttk.py	Wed Jan 28 14:08:21 2009
@@ -59,7 +59,7 @@
 
 def _format_optdict(optdict, script=False, ignore=None):
     """Formats optdict to a tuple to pass it to tk.call.
-    
+
     E.g. (script=False):
       {'foreground': 'blue', 'padding': [1, 2, 3, 4]} returns:
       ('-foreground', 'blue', '-padding', '1 2 3 4')"""
@@ -93,7 +93,7 @@
 
 def _format_mapdict(mapdict, script=False):
     """Formats mapdict to pass it to tk.call.
-    
+
     E.g. (script=False):
       {'expand': [('active', 'selected', 'grey'), ('focus', [1, 2, 3, 4])]}
 
@@ -1203,7 +1203,7 @@
 
     def get_children(self, item=None):
         """Returns a tuple of children belonging to item.
-        
+
         If item is not specified, returns root children."""
         return self.tk.call(self._w, "children", item or '') or ()
 
@@ -1486,7 +1486,7 @@
 class LabeledScale(Frame, object):
     """A Ttk Scale widget with a Ttk Label widget indicating its
     current value.
-    
+
     The Ttk Scale can be accessed through instance.scale, and Ttk Label
     can be accessed through instance.label"""
 

Modified: sandbox/trunk/ttk-gsoc/src/3.x/test/test_functions.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/3.x/test/test_functions.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/3.x/test/test_functions.py	Wed Jan 28 14:08:21 2009
@@ -130,7 +130,7 @@
         # image type expects at least an image name, so this should raise
         # IndexError since it tries to access the index 0 of an empty tuple
         self.failUnlessRaises(IndexError, ttk._format_elemcreate, 'image')
-        
+
         # don't format returned values as a tcl script
         # minimum acceptable for image type
         self.failUnlessEqual(ttk._format_elemcreate('image', False, 'test'),

Modified: sandbox/trunk/ttk-gsoc/src/3.x/test/test_widgets.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/3.x/test/test_widgets.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/3.x/test/test_widgets.py	Wed Jan 28 14:08:21 2009
@@ -284,7 +284,7 @@
 
         self.entry.delete(0, 'end')
         self.failUnlessEqual(self.entry.get(), '')
-        
+
         self.entry.insert('end', 'a1b')
         self.failUnlessEqual(self.entry.validate(), False)
         self.failUnlessEqual(self.entry.state(), ('invalid', ))

Modified: sandbox/trunk/ttk-gsoc/src/3.x/ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/3.x/ttk.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/3.x/ttk.py	Wed Jan 28 14:08:21 2009
@@ -59,7 +59,7 @@
 
 def _format_optdict(optdict, script=False, ignore=None):
     """Formats optdict to a tuple to pass it to tk.call.
-    
+
     E.g. (script=False):
       {'foreground': 'blue', 'padding': [1, 2, 3, 4]} returns:
       ('-foreground', 'blue', '-padding', '1 2 3 4')"""
@@ -93,7 +93,7 @@
 
 def _format_mapdict(mapdict, script=False):
     """Formats mapdict to pass it to tk.call.
-    
+
     E.g. (script=False):
       {'expand': [('active', 'selected', 'grey'), ('focus', [1, 2, 3, 4])]}
 
@@ -1203,7 +1203,7 @@
 
     def get_children(self, item=None):
         """Returns a tuple of children belonging to item.
-        
+
         If item is not specified, returns root children."""
         return self.tk.call(self._w, "children", item or '') or ()
 
@@ -1486,7 +1486,7 @@
 class LabeledScale(Frame):
     """A Ttk Scale widget with a Ttk Label widget indicating its
     current value.
-    
+
     The Ttk Scale can be accessed through instance.scale, and Ttk Label
     can be accessed through instance.label"""
 


More information about the Python-checkins mailing list