python - Global name is not defined, help! [SOLVED] | DaniWeb
www.daniweb.com › global-name-is-not-defined-helpSep 08, 2010 · NameError: global name 'helloCallBack' is not defined. This is my code: #Python 3.1 #!/Library/Frameworks/Python.framework/Versoins/3.1/Resources/Python from tkinter import * class Application(Frame): helloCallBack = None def helloCallBack(): tkMessageBox.showinfo ("Hello", "Hello, do you like my application?") def __init__(self, master=None): Frame.__init__(self, master) self.grid() self.createWidgets() def createWidgets(self): self.helloButton = Button (self, text='Hello', command ...