dabo Commit
Revision 6467
Date: 2011-02-24 14:07:35 -0800 (Thu, 24 Feb 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6467
Changed:
U trunk/dabo/ui/uiwx/dToolBar.py
Log:
Fixes for instantiation time wx attribute handling.
Diff:
Modified: trunk/dabo/ui/uiwx/dToolBar.py
===================================================================
--- trunk/dabo/ui/uiwx/dToolBar.py 2011-02-24 21:07:03 UTC (rev 6466)
+++ trunk/dabo/ui/uiwx/dToolBar.py 2011-02-24 22:07:35 UTC (rev 6467)
@@ -392,26 +392,22 @@
return self._hasWindowStyleFlag(wx.TB_TEXT)
def _setShowCaptions(self, val):
+ self._delWindowStyleFlag(wx.TB_TEXT)
+ if val:
+ self._addWindowStyleFlag(wx.TB_TEXT)
if self._constructed():
- self._delWindowStyleFlag(wx.TB_TEXT)
- if val:
- self._addWindowStyleFlag(wx.TB_TEXT)
self._realize()
- else:
- self._properties["ShowCaptions"] = val
def _getShowIcons(self):
return not self._hasWindowStyleFlag(wx.TB_NOICONS)
def _setShowIcons(self, val):
+ self._delWindowStyleFlag(wx.TB_NOICONS)
+ if not val:
+ self._addWindowStyleFlag(wx.TB_NOICONS)
if self._constructed():
- self._delWindowStyleFlag(wx.TB_NOICONS)
- if not val:
- self._addWindowStyleFlag(wx.TB_NOICONS)
self._realize()
- else:
- self._properties["ShowIcons"] = val
def _getToolbarItemClass(self):
_______________________________________________
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]