On Mon, Aug 3, 2009 at 6:02 PM, Paul McNett<[email protected]> wrote: > > Does this patch fix it? > > {{{ > Index: dabo/ui/uiwx/dForm.py > =================================================================== > --- dabo/ui/uiwx/dForm.py (revision 5305) > +++ dabo/ui/uiwx/dForm.py (working copy) > @@ -924,30 +924,30 @@ > # This is a normal SDI form: > preClass = wx.PreFrame > self._mdi = False > - self._hackToFrame() > + dForm._hackToFrame() > > ## (Note that it is necessary to run the above blocks each > time, because > ## we are modifying the dForm class definition globally.) > BaseForm.__init__(self, preClass, parent, properties, > attProperties, > *args, **kwargs) > - self._hackToFrame() > + dForm._hackToFrame() > > > def _hackToDialog(self): > dForm.__bases__ = (BaseForm, wx.Dialog) > > - def _hackToFrame(self): > - if self._mdi: > + def _hackToFrame(cls): > + if dabo.settings.MDI: > dForm.__bases__ = (BaseForm, wx.MDIChildFrame) > else: > dForm.__bases__ = (BaseForm, wx.Frame) > + _hackToFrame = classmethod(_hackToFrame) > > - > def Show(self, show=True, *args, **kwargs): > self._gtk_show_fix(show) > if self.Modal: > self._hackToDialog() > dForm.__bases__[-1].Show(self, show, *args, **kwargs) > - self._hackToFrame() > + dForm._hackToFrame() > > def _getModal(self): > return getattr(self, "_modal", False) > @@ -961,7 +961,7 @@ > if val and self.Modal: > self._hackToDialog() > self.ShowModal() > - self._hackToFrame() > + dForm._hackToFrame() > else: > self.Show(val) > else: > > }}} > > > Paul
Working greate on both: Python Version: 2.5.4 on darwin Dabo Version: Version 0.9.2; Revision 5328M + Your Patch to dForm UI Version: 2.8.9.2 on wxMac And: PythonVersion: 2.6.2 on win32 Dabo Version: Version 0.9.2; Revision ~5308 + Your Patch to dForm UI Version: 2.8.10.1 on wxMSW txs, Miguel _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
