mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
This hopefully fixes the problem of having to set PATH
in autoexec.bat in order to find the Tcl DLLs -- Tkinter calls FixTk which will hunt around in a few common places and then set PATH and try again, or else issue a big clarifying error message.
This commit is contained in:
parent
88303194a5
commit
f8d579c5e3
2 changed files with 68 additions and 1 deletions
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
__version__ = "$Revision$"
|
||||
|
||||
import _tkinter # If this fails your Python is not configured for Tk
|
||||
import sys
|
||||
if sys.platform == "win32":
|
||||
import FixTk # Attempt to configure Tcl/Tk without requiring PATH
|
||||
import _tkinter # If this fails your Python may not be configured for Tk
|
||||
tkinter = _tkinter # b/w compat for export
|
||||
TclError = _tkinter.TclError
|
||||
from types import *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue