(Linux) In the following program when the command python permissions.ph is issued I simply get another prompt, but when python3 permissions.py is issued I get the error below. Why does python2 see tkinter but python 3 doesn't?
garrett@bedroom ~/Projects/TestArea $ python permissions.py
garrett@bedroom ~/Projects/TestArea $ python3 permissions.py
Traceback (most recent call last):
File "permissions.py", line 1, in <module>
from Tkinter import *
ImportError: No module named 'Tkinter'
garrett@bedroom ~/Projects/TestArea $
from Tkinter import *
def fileopenbox(msg=None, title=None, default=None):
root = Tk()
root.withdraw()
f = tkFileDialog.askopenfilename(parent=root,title=title, initialfile=default)
if not f: return None
return os.path.normpath(f)