From f6a654993968a27d63d99ec1cf40e4ebf00f094d Mon Sep 17 00:00:00 2001 From: Kyle King Date: Fri, 6 Dec 2019 14:26:33 -0500 Subject: [PATCH] Add tkFileDialog to future.movers.tkinter Related to issue #233 / Commit a6ed514 --- src/future/moves/tkinter/filedialog.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/future/moves/tkinter/filedialog.py b/src/future/moves/tkinter/filedialog.py index 973923e2..6a6f03ca 100644 --- a/src/future/moves/tkinter/filedialog.py +++ b/src/future/moves/tkinter/filedialog.py @@ -10,3 +10,9 @@ 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?')