commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9516 - trunk/gnue-forms/src/uidrivers/qt3/widgets


From: johannes
Subject: [gnue] r9516 - trunk/gnue-forms/src/uidrivers/qt3/widgets
Date: Wed, 25 Apr 2007 09:31:12 -0500 (CDT)

Author: johannes
Date: 2007-04-25 09:31:12 -0500 (Wed, 25 Apr 2007)
New Revision: 9516

Modified:
   trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py
Log:
Allow checkboxes without a label


Modified: trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py 2007-04-25 14:28:04 UTC 
(rev 9515)
+++ trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py 2007-04-25 14:31:12 UTC 
(rev 9516)
@@ -372,7 +372,6 @@
                 state & qt.QKeyEvent.ControlButton > 0,
                 state & qt.QKeyEvent.AltButton > 0)
 
-        print "COMMAND:", command
         if command:
             if command == 'NEWLINE':
                 self.ui_widget._request(command, text = '\n')
@@ -648,7 +647,7 @@
 
     def __init__(self, parent, ui_widget):
 
-        qt.QCheckBox.__init__(self, ui_widget._gfObject.label, parent)
+        qt.QCheckBox.__init__(self, ui_widget._gfObject.label or '', parent)
         BaseEntry.__init__(self, ui_widget, qt.QCheckBox)
         self.setTristate(True)
         # We have to set both TabFocus and ClickFocus for this widget,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]