1
# DP: suggest installation of python-tk package on failing _tkinter import
3
Index: b/Lib/tkinter/__init__.py
4
===================================================================
5
--- a/Lib/tkinter/__init__.py
6
+++ b/Lib/tkinter/__init__.py
11
-import _tkinter # If this fails your Python may not be configured for Tk
14
+except ImportError as msg:
15
+ raise ImportError(str(msg) + ', please install the python-tk package')
16
TclError = _tkinter.TclError
17
from tkinter.constants import *