Hi all.
I was trying to create a wxAuiMDIParentFrame from XRC. My problem is
that it does not show up at all, without getting any error messages.
Here is a snippet from my code:
class StemFrame(wx.aui.AuiMDIParentFrame):
def __init__(self):
# Creation
self.Pre = wx.aui.PreAuiMDIParentFrame()
xrc.XmlResource.Get().LoadOnObject(self.Pre, None, "ID_FM_MAIN",
"wxAuiMDIParentFrame")
self.PostCreate(self.Pre)
And here is a snippet from my XRC file:
<object class="wxAuiMDIParentFrame" name="ID_FM_MAIN">
<style>wxDEFAULT_FRAME_STYLE|wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX</style>
<size>798,598</size>
<title>AutoStem</title>
<centered>1</centered>
<icon>../art/autostem.ico</icon>
What have I done wrong? I tried writing an XmlResourceHandler for
wxAuiMDIParentFrame but GetInstance() did not return None in
DoCreateResource(), which makes me think that the window has somehow
already been created.
Thanki you for your help.
Regards,
Stavros