|
From: John H. <ec...@ya...> - 2011-03-09 20:43:24
|
A slight cleanup, if I use wx.MDIParentFrame, and wx.MDIChildFrame, then nothing
needs to be changed at the import line.
BTW: The sizers works fine for the child windows! This is great.
###########
class Background(BackgroundBase, wx.Frame):
def __init__(self, aParent, aBgRsrc):
return BackgroundBase.__init__(self, aParent, aBgRsrc,
frameclass=wx.Frame)
class MDIChildBackground(BackgroundBase, wx.MDIChildFrame):
def __init__(self, aParent, aBgRsrc):
return BackgroundBase.__init__(self, aParent, aBgRsrc,
frameclass=wx.MDIChildFrame)
class MDIParentBackground(BackgroundBase, wx.MDIParentFrame):
def __init__(self, aParent, aBgRsrc):
return BackgroundBase.__init__(self, aParent, aBgRsrc,
frameclass=wx.MDIParentFrame)
--
John Henry
----- Original Message ----
> From: Steven D'Aprano <st...@pe...>
> To: pyt...@li...
> Sent: Wed, March 9, 2011 11:40:24 AM
> Subject: Re: [Pythoncard-users] Added MDI support to Pythoncard (was MDI -
>childwindows within a window)
>
> John Henry wrote:
> > I am happy to let you know that I succeeded in adding MDI support to
>Pythoncard
>
> > with only a few lines of modifications to the Background class in model.py
>
> Thank you for following up your question with a solution!
>
> I'm very glad to see that this PythonCard group isn't quite dead yet.
>
>
>
> --
> Steven
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>
|