dabo Commit
Revision 6098
Date: 2010-10-10 17:34:31 -0700 (Sun, 10 Oct 2010)
Author: Nate
Trac: http://trac.dabodev.com/changeset/6098
Changed:
U trunk/dabo/ui/uiwx/dMenuBar.py
Log:
On update, dMenuBar should checked the dynamic enabled property of each menu
item
and set it appropriately. This allows you update everything on dMenuBar's
update
and allows you to keep hotkeys active or inactive without the user pulling up
the menu.
Diff:
Modified: trunk/dabo/ui/uiwx/dMenuBar.py
===================================================================
--- trunk/dabo/ui/uiwx/dMenuBar.py 2010-10-08 18:32:01 UTC (rev 6097)
+++ trunk/dabo/ui/uiwx/dMenuBar.py 2010-10-11 00:34:31 UTC (rev 6098)
@@ -40,6 +40,12 @@
evt.Skip()
+ def update(self):
+ for menu in self.Children:
+ menu._setDynamicEnabled()
+ super(dMenuBar, self).update()
+
+
def appendMenu(self, menu):
"""Inserts a dMenu at the end of the dMenuBar."""
ret = self.Append(menu, menu.Caption)
_______________________________________________
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/[email protected]