wxMDIClientFrame

Levente Sandor sandorlevi at yahoo.com
Mon Jan 20 01:36:39 CET 2003


Reid Lai <reidlai at reidlai.com> wrote in message news:<3E2ACED6.9020502 at reidlai.com>...
> Dear All,
> 
> I am using wxPython and created a wxMDIClientFrame in parent MDIFrame. 

Did you mean wxMDIChildFrame?

> When I maximize the child, I cannot see maximize and minimize box in 
> child frame.  How can I fix this problem?  Thanks for your advice.
> 
> Reid

Add a menubar to the parent frame, and it will work as expected:

from wxPython.wx import *

app = wxPySimpleApp()

# parent frame
pf = wxMDIParentFrame(None, -1, 'MDI Parent')
pf.SetMenuBar(wxMenuBar())
pf.Show(true)

# child frame
cf = wxMDIChildFrame(pf, -1, 'MDI Child')
cf.Show(true)

app.MainLoop()

----
levi




More information about the Python-list mailing list