dabo Commit
Revision 3901
Date: 2008-01-30 15:10:14 -0800 (Wed, 30 Jan 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3901
Changed:
U trunk/dabo/ui/uiwx/dFormMixin.py
Log:
Worked around a problem showing up in the error log for my client's app that
I can't seem to reproduce myself.
Diff:
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py 2008-01-29 15:05:01 UTC (rev 3900)
+++ trunk/dabo/ui/uiwx/dFormMixin.py 2008-01-30 23:10:14 UTC (rev 3901)
@@ -829,9 +829,15 @@
def _getStatusBar(self):
if hasattr(self, "GetStatusBar"):
- ret = self.GetStatusBar()
+ try:
+ ret = self.GetStatusBar()
+ except:
+ # pkm: My client got a TypeError from the wx
layer, perhaps because the
+ # window is a dialog and not a form, but I
can't reproduce on my end.
+ # Just return None immediately if this
happens again.
+ return None
if (ret is None
- and not isinstance(self,
wx.MDIChildFrame)
+ and not isinstance(self,
wx.MDIChildFrame)
and self.ShowStatusBar):
ret = dabo.ui.dStatusBar(self)
self.SetStatusBar(ret)
_______________________________________________
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]