I am on a window xp and I've down loaded python 2.7.6 and wxpython 3.3, and i've run the following code
from the new boston and the error message i get back is:
Traceback (most recent call last):
File "C:\Python27\bu cky test", line 3, in <module>
class bucky(wx, frame):
NameError: name 'frame' is not defined
what do i do
thank you
Code:
#import wx
class bucky(wx, frame):
def __init__(self, parent,id):
wx.Frame.__init__(self, prent, id, 'Frame aka window', size = (300,200))
if __name__== "__main__":
app = wx.PySimpleApp()
frame = bucky(parent = None, id = -1)
frame.Show()
app.MainLoop()#
Traceback (most recent call last):
File "C:\Python27\bu cky test", line 3, in <module>
class bucky(wx, frame):
NameError: name 'frame' is not defined
what do i do
thank you
Comment