i am trying to make a gui for the first time in python on a mac running osx. it has python 2.3 installed and i downloaded the binary install for wxPython, the tcl/tk, and others but the modules never seem to install.
here is a program i am trying in wxPython:
from wxPython import *
class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, "Hello from wxPython")
frame.Show(true)
self.SetTopWindow(frame)
return true
app = MyApp(0)
app.MainLoop()
i also tryed to import wxPython, import wxPython.wx but it is no use.
it comes up with:
NameError: name 'wxApp' is not defined.
traceback (innermost last)
file "wxPython.py", line 3, in ?
class MyApp(wxApp):
can anybody help me?
here is a program i am trying in wxPython:
from wxPython import *
class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, "Hello from wxPython")
frame.Show(true)
self.SetTopWindow(frame)
return true
app = MyApp(0)
app.MainLoop()
i also tryed to import wxPython, import wxPython.wx but it is no use.
it comes up with:
NameError: name 'wxApp' is not defined.
traceback (innermost last)
file "wxPython.py", line 3, in ?
class MyApp(wxApp):
can anybody help me?