-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5226 from radarhere/tk_version
Added tk version to pilinfo
- Loading branch information
Showing
3 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
""" Find compiled module linking to Tcl / Tk libraries | ||
""" | ||
import sys | ||
import tkinter | ||
from tkinter import _tkinter as tk | ||
|
||
if hasattr(sys, "pypy_find_executable"): | ||
TKINTER_LIB = tk.tklib_cffi.__file__ | ||
else: | ||
TKINTER_LIB = tk.__file__ | ||
|
||
tk_version = str(tkinter.TkVersion) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters