dabo Commit
Revision 3650
Date: 2007-11-11 09:59:03 -0800 (Sun, 11 Nov 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3650

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

Log:
Passing Enabled to the constructor was having no effect on toolbar buttons. 
This fixes that problem.


Diff:
Modified: trunk/dabo/ui/uiwx/dToolBar.py
===================================================================
--- trunk/dabo/ui/uiwx/dToolBar.py      2007-11-11 15:33:01 UTC (rev 3649)
+++ trunk/dabo/ui/uiwx/dToolBar.py      2007-11-11 17:59:03 UTC (rev 3650)
@@ -154,6 +154,7 @@
                        picBmp = dabo.ui.strToBmp(pic)
                else:
                        picBmp = pic
+               enabled = self._extractKey(kwargs, "Enabled", True)
                
                wd, ht = picBmp.GetWidth(), picBmp.GetHeight()
                needScale = False
@@ -201,6 +202,7 @@
                else:
                        self._daboChildren.insert(pos, butt)
                butt._parent = self
+               butt.Enabled = enabled
 
                return butt
                        




_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]

Reply via email to