[POS-commit] r6464 - kiwi/trunk/kiwi/ui

Johan Dahlin jdahlin at async.com.br
Fri Apr 27 11:19:23 BRT 2007


Author: jdahlin
Date: Fri Apr 27 11:19:22 2007
New Revision: 6464

Modified:
   kiwi/trunk/kiwi/ui/entry.py

Log:
Minor adjustments, possible 2.4 fix


Modified: kiwi/trunk/kiwi/ui/entry.py
==============================================================================
--- kiwi/trunk/kiwi/ui/entry.py	(original)
+++ kiwi/trunk/kiwi/ui/entry.py	Fri Apr 27 11:19:22 2007
@@ -103,7 +103,7 @@
 from kiwi.utils import PropertyObject, gsignal, gproperty, type_register
 
 if not environ.epydoc:
-    HAVE_2_6 = gtk.pygtk_version[:2] == (2, 6)
+    HAVE_2_6 = gtk.pygtk_version[:2] <= (2, 6)
 else:
     HAVE_2_6 = True
 
@@ -277,7 +277,7 @@
           - 'a' alphanumeric, honors the locale
           - 'A' alphanumeric, honors the locale
 
-        This is similar to MaskedTextBox: 
+        This is similar to MaskedTextBox:
         U{http://msdn2.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.mask(VS.80).aspx}
 
         Example mask for a ISO-8601 date
@@ -939,7 +939,7 @@
     def _on_move_cursor(self, entry, step, count, extend_selection):
         self._selecting = extend_selection
 
-    def _on_button_press_event(self, entry, event ):
+    def _on_button_press_event(self, entry, event):
         if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
             self._selecting = True
         elif event.type == gtk.gdk.BUTTON_RELEASE and event.button == 1:


More information about the POS-commit mailing list