@mytec: pushed back before 1.1

This commit is contained in:
lazard36
2026-01-30 20:12:52 +00:00
parent d6988e370e
commit e8ae5bc1db
5228 changed files with 1191766 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
"""Find compiled module linking to Tcl / Tk libraries"""
from __future__ import annotations
import sys
import tkinter
tk = getattr(tkinter, "_tkinter")
try:
if hasattr(sys, "pypy_find_executable"):
TKINTER_LIB = tk.tklib_cffi.__file__
else:
TKINTER_LIB = tk.__file__
except AttributeError:
# _tkinter may be compiled directly into Python, in which case __file__ is
# not available. load_tkinter_funcs will check the binary first in any case.
TKINTER_LIB = None
tk_version = str(tkinter.TkVersion)