dabo Commit
Revision 6207
Date: 2010-11-24 09:23:55 -0800 (Wed, 24 Nov 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6207
Changed:
U trunk/ide/ClassDesigner.py
U trunk/ide/MenuDesignerForm.py
Log:
Replaced menu retrieval from older caption-based method to ID retrieval
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2010-11-24 17:23:02 UTC (rev 6206)
+++ trunk/ide/ClassDesigner.py 2010-11-24 17:23:55 UTC (rev 6207)
@@ -2146,7 +2146,7 @@
def menuUpdate(self, evt, mb):
mn = evt.menuObject
- if mn is mb.getMenu(_("View")):
+ if mn is mb.getMenu("base_view"):
prmDict = {False: (_("Hide"), _("Show")), True:
(_("Show"), _("Hide"))}
for item in mn.Children:
if not hasattr(item, "Caption"):
Modified: trunk/ide/MenuDesignerForm.py
===================================================================
--- trunk/ide/MenuDesignerForm.py 2010-11-24 17:23:02 UTC (rev 6206)
+++ trunk/ide/MenuDesignerForm.py 2010-11-24 17:23:55 UTC (rev 6207)
@@ -104,7 +104,7 @@
def afterSetMenuBar(self):
mbar = self.MenuBar
- fm = mbar.getMenu(_("File"))
+ fm = mbar.getMenu("base_file")
fm.append(_("Save"), HotKey="Ctrl+S", OnHit=self.onSave,
help=_("Save the menu"))
_______________________________________________
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]