请帮我看一下这个类该怎么声名

请帮我看一下这个类该怎么声名

import wx
import newwindow

class mdiframe(wx.MDIParentFrame):
    def __init__(self,parent):
        wx.MDIParentFrame.__init__(self,parent,-1,'test_title',style = wx.DEFAULT_FRAME_STYLE|wx.MAXIMIZE)
        self.MakeMenu()
        
    def MakeMenu(self):
        file = wx.Menu()
        file.Append(101, '&Open', 'Open a new document')
        self.Bind(wx.EVT_MENU,self.OnNewW,id = 101)
        
        menubar = wx.MenuBar()
        menubar.Append(file,'&File')
        
        self.SetMenuBar(menubar)
        self.CreateStatusBar()
    def OnNewW(self,evt):
        win = newwindow.Newwindow()
        #win = wx.MDIChildFrame(self,-1, "Child Window: " )
        #self.panel = wx.Panel(win,-1)
        #win.Show(True)

app = wx.PySimpleApp()
frame = mdiframe(parent = None)
frame.Show()
app.MainLoop()


==========newwindow.py==================
import wx

class Newwindow(wx.MDIChildFrame):
    def __init__(self,parent=None):
        wx.MDIChildFrame.__init__(self,parent,-1,'title')
        #win = wx.MDIChildFrame(self,-1, "Child Window: " )
        #self.panel = wx.Panel(self,-1)
        self.Show(True)
   
我想 把这个MDIChildFrame单独拿到一个类里声名,请问该怎么解决,我现在总找不到解决错误的方法,谢谢
wxMDIChildFrame(wxMDIParentFrame* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame")


parent 为Frame
win = newwindow.Newwindow(parent=self)