「プライマリ」フレームである mainWindow と、mainWindow の子である moreWindow の 2 つのフレームがあります。mainWindow のボタンがクリックされたときに moreWindow を表示したいと思います。これが私が試していることです:
def showChild(nil):
moreWindow.Show()
class mainWindow(wx.Frame):
def __init__:
buttonMore.Bind(wx.EVT_BUTTON, showChild)
class moreWindow(wx.Frame):
TypeError: unbound method Show() must be called with moreWindow instance as first argument (got nothing instead)
を使用してみmoreWindow.Show(moreWindow)
ましたが、より不可解なエラーが発生しました。