dabo Commit
Revision 3628
Date: 2007-11-06 14:02:19 -0800 (Tue, 06 Nov 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3628
Changed:
U trunk/dabo/ui/uiwx/dMenu.py
Log:
Fixed bug where some menu item captions would show as 'dMenuItem'. For some
reason, the SetBitmap() called with no Icon was the problem.
Diff:
Modified: trunk/dabo/ui/uiwx/dMenu.py
===================================================================
--- trunk/dabo/ui/uiwx/dMenu.py 2007-11-06 20:59:01 UTC (rev 3627)
+++ trunk/dabo/ui/uiwx/dMenu.py 2007-11-06 22:02:19 UTC (rev 3628)
@@ -116,7 +116,7 @@
wxItem = wxFunc(dMenuItemInstance)
dMenuItemInstance.Parent = self
self._daboChildren[wxItem.GetId()] = dMenuItemInstance
- if sys.platform.lower()[:3] == "win":
+ if dMenuItemInstance.Icon and sys.platform.lower()[:3] == "win":
wxItem.SetBitmap(dMenuItemInstance.Icon)
return wxItem
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]