[POS-commit] r238 - in Kiwi2: Kiwi2/Widgets tests

Gustavo Matheus Rahal gustavo at async.com.br
Wed Mar 30 11:01:15 BRT 2005


Author: gustavo
Date: 2005-03-30 11:01:15 -0300 (Wed, 30 Mar 2005)
New Revision: 238

Modified:
   Kiwi2/Kiwi2/Widgets/SpinButton.py
   Kiwi2/Kiwi2/Widgets/WidgetProxy.py
   Kiwi2/tests/test_SpinButton.py
Log:
removed some prints

Modified: Kiwi2/Kiwi2/Widgets/SpinButton.py
===================================================================
--- Kiwi2/Kiwi2/Widgets/SpinButton.py	2005-03-30 13:54:33 UTC (rev 237)
+++ Kiwi2/Kiwi2/Widgets/SpinButton.py	2005-03-30 14:01:15 UTC (rev 238)
@@ -35,7 +35,6 @@
         # since the default data_type is str we need to set it to int or float for spinbuttons
         WidgetProxyMixin.__init__(self, data_type=int)
         gtk.SpinButton.__init__(self)
-        #self._data_value = ''
     
     def set_data_type(self, data_type):
         old_datatype = self._data_type

Modified: Kiwi2/Kiwi2/Widgets/WidgetProxy.py
===================================================================
--- Kiwi2/Kiwi2/Widgets/WidgetProxy.py	2005-03-30 13:54:33 UTC (rev 237)
+++ Kiwi2/Kiwi2/Widgets/WidgetProxy.py	2005-03-30 14:01:15 UTC (rev 238)
@@ -84,7 +84,6 @@
             raise AttributeError("Invalid property name: %s" % pspec.name)
 
     def do_set_property(self, pspec, value):
-        print "do_set_property", pspec, type(value)
         prop_name = pspec.name.replace("-", "_")
         try:
             getattr(self, "set_%s" % prop_name)(value)

Modified: Kiwi2/tests/test_SpinButton.py
===================================================================
--- Kiwi2/tests/test_SpinButton.py	2005-03-30 13:54:33 UTC (rev 237)
+++ Kiwi2/tests/test_SpinButton.py	2005-03-30 14:01:15 UTC (rev 238)
@@ -9,9 +9,9 @@
     def testForIntFloat(self):
         mySpinBtn = SpinButton()
         self.assertEqual(mySpinBtn.get_property("data-type"), int)
-
-        # this test doens't work... maybe be a pygtk bug
-        #self.assertRaises(TypeError, mySpinBtn.set_property, 'data-type', int)
         
+        # this test doens't work... might be a pygtk bug
+        #self.assertRaises(TypeError, mySpinBtn.set_property, 'data-type', str)
+        
 if __name__ == '__main__':
     unittest.main()



More information about the POS-commit mailing list