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,
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.