dabo Commit
Revision 4381
Date: 2008-08-08 12:46:12 -0700 (Fri, 08 Aug 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4381

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

Log:
Fixed the submenu display problem when using mnxml format.  Instead of creating 
a dMenu with no parent, we would create a menu with the menubar as the parent 
and that would lead to trying to set the top label upon setting the caption 
which we don't want.

Diff:
Modified: trunk/dabo/ui/uiwx/__init__.py
===================================================================
--- trunk/dabo/ui/uiwx/__init__.py      2008-08-08 15:40:03 UTC (rev 4380)
+++ trunk/dabo/ui/uiwx/__init__.py      2008-08-08 19:46:12 UTC (rev 4381)
@@ -1119,7 +1119,10 @@
        def addMenu(mb, menuDict, form, previewFunc):
                if form is None:
                        form = dabo.dAppRef.ActiveForm
-               menu = dabo.ui.dMenu(mb)
+               if isinstance(mb, dabo.ui.dMenuBar):
+                       menu = dabo.ui.dMenu(mb)
+               else:
+                       menu = dabo.ui.dMenu()
                atts = menuDict["attributes"]
                menu.Caption = atts["Caption"]
                menu.MRU = atts["MRU"]




_______________________________________________
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/%(messageid)s

Reply via email to