mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Added tk version
This commit is contained in:
parent
baaa298e00
commit
cf98f178ad
|
@ -1,9 +1,12 @@
|
||||||
""" Find compiled module linking to Tcl / Tk libraries
|
""" Find compiled module linking to Tcl / Tk libraries
|
||||||
"""
|
"""
|
||||||
import sys
|
import sys
|
||||||
|
import tkinter
|
||||||
from tkinter import _tkinter as tk
|
from tkinter import _tkinter as tk
|
||||||
|
|
||||||
if hasattr(sys, "pypy_find_executable"):
|
if hasattr(sys, "pypy_find_executable"):
|
||||||
TKINTER_LIB = tk.tklib_cffi.__file__
|
TKINTER_LIB = tk.tklib_cffi.__file__
|
||||||
else:
|
else:
|
||||||
TKINTER_LIB = tk.__file__
|
TKINTER_LIB = tk.__file__
|
||||||
|
|
||||||
|
tk_version = str(tkinter.TkVersion)
|
||||||
|
|
|
@ -9,7 +9,7 @@ from . import Image
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
"pil": ("PIL._imaging", "PILLOW_VERSION"),
|
"pil": ("PIL._imaging", "PILLOW_VERSION"),
|
||||||
"tkinter": ("PIL._tkinter_finder", None),
|
"tkinter": ("PIL._tkinter_finder", "tk_version"),
|
||||||
"freetype2": ("PIL._imagingft", "freetype2_version"),
|
"freetype2": ("PIL._imagingft", "freetype2_version"),
|
||||||
"littlecms2": ("PIL._imagingcms", "littlecms_version"),
|
"littlecms2": ("PIL._imagingcms", "littlecms_version"),
|
||||||
"webp": ("PIL._webp", "webpdecoder_version"),
|
"webp": ("PIL._webp", "webpdecoder_version"),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user