dabo Commit
Revision 5807
Date: 2010-05-10 09:32:03 -0700 (Mon, 10 May 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5807
Changed:
U trunk/dabo/ui/uiwx/dFormMixin.py
Log:
Updated the convenience methods to return the created item.
Diff:
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py 2010-05-08 14:28:17 UTC (rev 5806)
+++ trunk/dabo/ui/uiwx/dFormMixin.py 2010-05-10 16:32:03 UTC (rev 5807)
@@ -564,12 +564,12 @@
def _appendToMenu(self, menu, caption, function, bitmap=wx.NullBitmap,
menuId=-1):
- menu.append(caption, OnHit=function, bmp=bitmap)
+ return menu.append(caption, OnHit=function, bmp=bitmap)
def appendToolBarButton(self, name, pic, toggle=False, tip="", help="",
*args, **kwargs):
- self.ToolBar.appendButton(name, pic, toggle=toggle, tip=tip,
+ return self.ToolBar.appendButton(name, pic, toggle=toggle,
tip=tip,
help=help, *args, **kwargs)
_______________________________________________
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]