im doing a tut for Tkinter and in it they do this:
tkFileDialog.askopenfilename()
but when i run it i get this error:
Traceback (most recent call last):
File "C:\Documents and Settings\tom\Desktop\Programing\Python\c++ + python\main.py", line 67, in <module>
if __name__ == "__main__": main()
File "C:\Documents and Settings\tom\Desktop\Programing\Python\c++ + python\main.py", line 64, in main
app = App(root)
File "C:\Documents and Settings\tom\Desktop\Programing\Python\c++ + python\main.py", line 13, in __init__
filemenu.add_command(label = "Open", command = self.openFile())
File "C:\Documents and Settings\tom\Desktop\Programing\Python\c++ + python\main.py", line 42, in openFile
tkFileDialog.askopenfilename()
NameError: global name 'tkFileDialog' is not defined
any ideas?