dabo Commit
Revision 4841
Date: 2008-12-15 21:01:07 -0800 (Mon, 15 Dec 2008)
Author: Paul
Trac: http://trac.dabodev.com/dabo/changeset/4841

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

Log:
These fix my earlier commit: if we are a dialog we don't have a toolbar or
statusbar.


Diff:
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py    2008-12-16 04:01:16 UTC (rev 4840)
+++ trunk/dabo/ui/uiwx/dFormMixin.py    2008-12-16 05:01:07 UTC (rev 4841)
@@ -187,13 +187,16 @@
 
 
        def _createToolBar(self):
-               if self.ShowToolBar and self.ToolBar is None:
+               if (self.ShowToolBar
+                               and self.ToolBar is None
+                               and not isinstance(self, wx.Dialog)):
                        self.ToolBar = dabo.ui.dToolBar(self)
 
 
        def _createStatusBar(self):
                if (self.ShowStatusBar 
                                and self.StatusBar is None
+                               and not isinstance (self, wx.Dialog)
                                and (sys.platform.startswith("darwin") or not 
isinstance(self, wx.MDIChildFrame))):
                        self.StatusBar = dabo.ui.dStatusBar(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]

Reply via email to