mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #20035: Reimplement tkinter._fix module as a C function.
The new private C function makes no permanent changes to the environment and is #ifdef'd out on non-Windows platforms.
This commit is contained in:
parent
3cfec2e2fc
commit
7dc9dea778
12 changed files with 134 additions and 99 deletions
|
@ -31,9 +31,6 @@ tk.mainloop()
|
|||
"""
|
||||
|
||||
import sys
|
||||
if sys.platform == "win32":
|
||||
# Attempt to configure Tcl/Tk without requiring PATH
|
||||
from tkinter import _fix
|
||||
|
||||
import _tkinter # If this fails your Python may not be configured for Tk
|
||||
TclError = _tkinter.TclError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue