dabo Commit
Revision 1603
Date: 2005-11-29 16:18:40 -0800 (Tue, 29 Nov 2005)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dToolBar.py
Log:
Worked around an assertion error on Mac for dToolBar toggle.
Diff:
Modified: trunk/dabo/ui/uiwx/dToolBar.py
===================================================================
--- trunk/dabo/ui/uiwx/dToolBar.py 2005-11-30 00:11:16 UTC (rev 1602)
+++ trunk/dabo/ui/uiwx/dToolBar.py 2005-11-30 00:18:40 UTC (rev 1603)
@@ -152,7 +152,12 @@
butt = dToolBarItem(self.DoInsertTool(pos, id_,
caption, picBmp,
shortHelp=tip, longHelp=help))
- self.SetToggle(id_, toggle)
+ try:
+ self.SetToggle(id_, toggle)
+ except wx._core.PyAssertionError:
+ ## The AssertionError: not implemented occurs on wxMac,
even though
+ ## SetToggle() obviously is implemented, because it
does work.
+ pass
if bindfunc:
butt.bindEvent(dEvents.Hit, bindfunc)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev