dabo Commit
Revision 4383
Date: 2008-08-08 13:05:20 -0700 (Fri, 08 Aug 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4383

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

Log:
Fixed a display problem introduced by ed's refactor in 4345.  If you called 
prepend or insert the items would instead be appended.

Diff:
Modified: trunk/dabo/ui/uiwx/dMenu.py
===================================================================
--- trunk/dabo/ui/uiwx/dMenu.py 2008-08-08 19:47:01 UTC (rev 4382)
+++ trunk/dabo/ui/uiwx/dMenu.py 2008-08-08 20:05:20 UTC (rev 4383)
@@ -222,7 +222,7 @@
                        picture = bmp
                def _actualCreation(caption, help, picture, menutype, *args, 
**kwargs):
                        _item = self._getItem(help, picture, menutype, *args, 
**kwargs)
-                       self.appendItem(_item)
+                       self.insertItem(pos, _item)
                        _item.Caption = caption
                        return _item
                dummySpacer = None




_______________________________________________
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