Skip to content

Commit 741722d

Browse files
authored
Merge pull request #532 from KyleKing/fix/import_tkfiledialog
Add tkFileDialog to future.moves.tkinter.filedialog
2 parents fa57ed9 + f6a6549 commit 741722d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/future/moves/tkinter/filedialog.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@
1010
except ImportError:
1111
raise ImportError('The FileDialog module is missing. Does your Py2 '
1212
'installation include tkinter?')
13+
14+
try:
15+
from tkFileDialog import *
16+
except ImportError:
17+
raise ImportError('The tkFileDialog module is missing. Does your Py2 '
18+
'installation include tkinter?')

0 commit comments

Comments
 (0)