wxPython "Frames within Frames"
Robin Dunn
robin at alldunn.NOSPAM.com
Wed Mar 31 12:05:22 EST 2004
Simon Erikson wrote:
> Hello:
>
> I would like to build an app consisting of a "root" frame that can
> contain an arbitrary number of child frames (the user will click to
> create them). Each of these child frames needs the full functionality
> of a frame (title,menu,status bars, min,max,close icons, scroll bars,
> sizing, moving). In addition, the user must be able to create
> grandchild frames within these child frames, to an arbitrary depth (in
> practice limited to 10 or so).
>
> As I understand it, MDI provides the means of creating the root and
> first generation frames, but not the further generations.
>
> I found this at 'http://www.orbtech.com/www/wx/epydoc/public/wx.Frame-class.htm'
> A frame is a window whose size and position can (usually) be changed
> by the user. It usually has thick borders and a title bar, and can
> optionally contain a menu bar, toolbar and status bar.
> A frame can contain any window that is not a frame or dialog.
>
> Does this last sentence mean my quest is hopeless? Can someone please
> help me?
If you are on windows then you can use the wxMDI* classes and get what
you want. Since GTK has nothing like that then MDI is emulated using a
wxNotebook. On OSX wxMDI is implemented using multiple top level
document windows, since that is the standard on that platform.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the Python-list
mailing list