dabo Commit
Revision 3614
Date: 2007-11-02 11:50:57 -0700 (Fri, 02 Nov 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3614
Changed:
U trunk/dabo/ui/uiwx/uiApp.py
Log:
Fixed a bug with MDI windows always reporting the MDI parent as the ActiveForm,
when we really want the MDI child form that is active. This fixes bug [1108].
Diff:
Modified: trunk/dabo/ui/uiwx/uiApp.py
===================================================================
--- trunk/dabo/ui/uiwx/uiApp.py 2007-11-02 18:26:01 UTC (rev 3613)
+++ trunk/dabo/ui/uiwx/uiApp.py 2007-11-02 18:50:57 UTC (rev 3614)
@@ -9,6 +9,7 @@
import dabo.dConstants as kons
+
class SplashScreen(wx.Frame):
"""This is a specialized form that is meant to be used as a startup
splash screen. It takes an image file, bitmap, icon, etc., which is used
@@ -887,6 +888,8 @@
af = getattr(self, "_activeForm", None)
if af is None:
af = wx.GetActiveWindow()
+ if isinstance(af, wx.MDIParentFrame):
+ af = af.GetActiveChild()
return af
def _setActiveForm(self, frm):
_______________________________________________
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]