[gnue] r9476 - trunk/gnue-forms/src/uidrivers/wx26/widgets

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-04-10 01:59:37 -0500 (Tue, 10 Apr 2007)
New Revision: 9476

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
Log:
Fix for checkbox without label.


Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py	2007-04-09 22:28:51 UTC (rev 9475)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/entry.py	2007-04-10 06:59:37 UTC (rev 9476)
@@ -136,7 +136,7 @@
 
     def __build_checkbox (self, parent):
 
-        result = wx.CheckBox (parent, -1, self._gfObject.label,
+        result = wx.CheckBox (parent, -1, self._gfObject.label or '',
                 style=wx.CHK_3STATE)
         result.Bind (wx.EVT_CHECKBOX, self.__on_toggle_checkbox)
         result.Bind (wx.EVT_CHAR, self.__on_keypress)
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.