Unable to run Simple Example

Jason Orendorff jason at jorendorff.com
Wed Jan 30 10:20:25 EST 2002


You have some lines indented incorrectly.  Try:

from wxPython.wx import *

class MyApp(wxApp):
    def OnInit(self):
        frame = wxFrame(NULL, -1, "Hello World")
        frame.Show(true)
        self.SetTopWindow(frame)
        return true

app = MyApp(0)
app.MainLoop()

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list