dabo Commit
Revision 4124
Date: 2008-06-10 09:49:46 -0700 (Tue, 10 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4124

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

Log:
Fixed a problem with submenus under Windows displaying their text squeezed over 
to the right side of the menu.

Diff:
Modified: trunk/dabo/ui/uiwx/dMenu.py
===================================================================
--- trunk/dabo/ui/uiwx/dMenu.py 2008-06-08 16:46:01 UTC (rev 4123)
+++ trunk/dabo/ui/uiwx/dMenu.py 2008-06-10 16:49:46 UTC (rev 4124)
@@ -169,10 +169,16 @@
 
        def appendMenu(self, menu):
                """Insert a dMenu at the bottom of the menu."""
+               dummySpacer = None
+               if not self.Children:
+                       dummySpacer = self.append(" ")
                wxMenuItem = self.AppendMenu(-1, menu.Caption, menu, 
help=menu.HelpText)
+#-             wxMenuItem = self.AppendSubMenu(menu, menu.Caption, 
help=menu.HelpText)
                menu._setId(wxMenuItem.GetId())
                menu.Parent = self
                self._daboChildren[wxMenuItem.GetId()] = menu
+               if dummySpacer:
+                       self.remove(dummySpacer)
                return 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]

Reply via email to