dabo Commit
Revision 4472
Date: 2008-08-27 14:28:29 -0700 (Wed, 27 Aug 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4472

Changed:
U   trunk/dabo/ui/uiwx/__init__.py

Log:
If we have specified properties like DynamicEnabled in a menuPanel tag in an 
mnxml file, all but Caption, MRU, and HelpText were ignored.  This commit fixes 
the problem.

Diff:
Modified: trunk/dabo/ui/uiwx/__init__.py
===================================================================
--- trunk/dabo/ui/uiwx/__init__.py      2008-08-27 20:51:27 UTC (rev 4471)
+++ trunk/dabo/ui/uiwx/__init__.py      2008-08-27 21:28:29 UTC (rev 4472)
@@ -1144,9 +1144,11 @@
                else:
                        menu = dabo.ui.dMenu()
                atts = menuDict["attributes"]
-               menu.Caption = atts["Caption"]
-               menu.MRU = atts["MRU"]
-               menu.HelpText = atts["HelpText"]
+               menu.Caption = menu._extractKey(atts, "Caption")
+               menu.MRU = menu._extractKey(atts, "MRU")
+               menu.HelpText = menu._extractKey(atts, "HelpText")
+               if atts:
+                       menu.setPropertiesFromAtts(atts, context={"form": form, 
"app": dabo.dAppRef})
                mb.appendMenu(menu)
                try:
                        items = menuDict["children"]




_______________________________________________
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]

Reply via email to