wxMDIChildFrame.GetParent() on Windows returns a wxMDIParentFrame instance,
but it returns a wxMDIClientWindow instance on wxPython-2.3.2.1/wxGTK-2.3.2
Redhat 7.2. Since I compiled wxPython and wxGTK, I thought I'd ask if this
is a general bug or something specific to my installation.
Thanks,
John
import wxPython.wx as wx
class App(wx.wxApp):
def OnInit(self):
self.main = wx.wxMDIParentFrame(None,-1,'Parent')
self.main.Center()
self.main.Show()
child = wx.wxMDIChildFrame(self.main,-1,'Child')
message = 'Parent is ' + str(self.main) + '\n'
message += 'Child thinks parent is ' + str(child.GetParent())
dlg = wx.wxMessageDialog(self.main,message,'Dialog')
dlg.ShowModal()
dlg.Destroy()
return wx.false
application = App()
application.MainLoop()