Re: Added MDI support to Pythoncard (was MDI - childwindows within a window)
John Henry <[email protected]> Wed, 9 Mar 2011 12:43:17 -0800 (PST)
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
> To: [email protected]
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>
------------------------------------------------------------------------------
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