Author: johannes
Date: 2007-05-31 01:58:11 -0500 (Thu, 31 May 2007)
New Revision: 9644
Modified:
trunk/gnue-forms/src/uidrivers/wx26/widgets/menuitem.py
Log:
Only check or uncheck a menuitem if it is checkable at all
Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/menuitem.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/menuitem.py 2007-05-31 06:53:48 UTC (rev 9643)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/menuitem.py 2007-05-31 06:58:11 UTC (rev 9644)
@@ -106,13 +106,13 @@
# -------------------------------------------------------------------------
def _ui_switch_on_(self):
- if self.__widget is not None:
+ if self.__widget is not None and self.__widget.IsCheckable():
self.__widget.Check(True)
# -------------------------------------------------------------------------
def _ui_switch_off_(self):
- if self.__widget is not None:
+ if self.__widget is not None and self.__widget.IsCheckable():
self.__widget.Check(False)
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.