dabo Commit
Revision 4588
Date: 2008-10-23 15:40:45 -0700 (Thu, 23 Oct 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4588

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

Log:
Fixed status text to still go to the MDI child form on Mac, instead of the MDI 
parent. On
Mac, the MDI parent frame isn't shown and the children are still fully SDI so 
the whole
MDI thing is kind of a misnomer.


Diff:
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py    2008-10-23 22:40:05 UTC (rev 4587)
+++ trunk/dabo/ui/uiwx/dFormMixin.py    2008-10-23 22:40:45 UTC (rev 4588)
@@ -884,7 +884,7 @@
                        #      Just return None immediately if this happens 
again.
                        return None
                if (ret is None
-                               and not isinstance(self, wx.MDIChildFrame)
+                               and (sys.platform.startswith("darwin") or not 
isinstance(self, wx.MDIChildFrame))
                                and self.ShowStatusBar):
                        ret = dabo.ui.dStatusBar(self)
                        self.SetStatusBar(ret)
@@ -895,7 +895,7 @@
 
        def _getStatusText(self):
                ret = ""
-               if isinstance(self, wx.MDIChildFrame):
+               if sys.platform.startswith("win") and isinstance(self, 
wx.MDIChildFrame):
                        controllingFrame = self.Application.MainForm
                else:
                        controllingFrame = self
@@ -914,7 +914,7 @@
                versus non-MDI forms.
                """
                hasStatus = True
-               if isinstance(self, wx.MDIChildFrame):
+               if sys.platform.startswith("win") and isinstance(self, 
wx.MDIChildFrame):
                        controllingFrame = self.Application.MainForm
                else:
                        controllingFrame = 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