Can anyone tell me what I’m doing wrong
from wxPython.wx import *
class MyFrame(wxFrame):
def __init__(self, parent, id, title):
wxFrame.__init__(self, parent, id, title, wxPoint(100, 100), wxSize(400, 400))
class MyApp(wxApp):
def OnInit(self):
self.frame = MyFrame(NULL, -1, "This is a test")
self.frame.Show(true)
self.SetTopWindow(self.frame)
return true
def OnExit(self):
print "exit"
app = MyApp(0)
app.MainLoop()