class MyChildFrame(wx.aui.AuiMDIChildFrame):
def __init__(self, parent, count):
wx.aui.AuiMDIChildFrame.__init__(self, parent, -1, title='Child %d'%count)
def GetMDIParentFrame(self):
# FIXME
# wx.aui.AuiMDIChildFrame::GetParent returns
# AuiMDIChildFrame not MyChildFrame
return self.GetParent().GetParent()
I don't like this fix though, I do not have an alternative idea.
If it is in C++, I cast a MyChildFrame instance into an AuiMDIChildFrame instance in the GetMDIParentFrame method.
0 件のコメント:
コメントを投稿