[wxPython] wxMDIChildFrame.GetParent

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()

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.

Nope, just the different details of the two implementations showing through,
and the fact that OOR knows what type the window *really* is. Calling
GetParent on the wxMDIClientWindow should give you the wxMDIParentFrame.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!