You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
|
|
from future.utils import PY3
|
|
|
|
|
|
|
|
if PY3:
|
|
|
|
from tkinter.filedialog import *
|
|
|
|
else:
|
|
|
|
try:
|
|
|
|
from FileDialog import *
|
|
|
|
except ImportError:
|
|
|
|
raise ImportError('The FileDialog module is missing. Does your Py2 '
|
|
|
|
'installation include tkinter?')
|
|
|
|
|
|
|
|
try:
|
|
|
|
from tkFileDialog import *
|
|
|
|
except ImportError:
|
|
|
|
raise ImportError('The tkFileDialog module is missing. Does your Py2 '
|
|
|
|
'installation include tkinter?')
|