[Boa Constr] calling child windows
Status: Beta
Brought to you by:
riaan
From: Finbarr O'K. <fo...@mc...> - 2001-08-08 15:46:55
|
I am having a problem with wxMDIChildFrame windows. I have created a simple Boa application that starts with a wxMDIParent frame with a simple menubar. From a menu option you call the wxMDIChildFrame window. Questions:- 1] What is the best way (using Boa) of calling a child window. I ended up putting "import wxMDIChildFrame1" at the top of wxMDIParentFrame1.py and using a menu event to call the child window. Is this ok or is there a better way to do it? def OnFilemenuitems0Menu(self, event): x=wxMDIChildFrame1.wxMDIChildFrame1(self) 2] Once the child window has been called and the user moves this window the parent (or any controls placed in the parent) is not redrawn. Clicking the maximise box really sends the display funny! I have tried using a paint event:- def OnWxmdiparentframe1Paint(self, event): dc = wxPaintDC(self) but this does not solve the problem of redrawing the underlying parent window. If I call a dialog box from the parent it is fine so the problem must lie with the child window? Any help would be appreciated Thanks Finbarr O'Keeffe |