文件操作 - _tkinter_finder.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/PIL/_tkinter_finder.py
编辑文件内容
""" Find compiled module linking to Tcl / Tk libraries """ import sys import tkinter from tkinter import _tkinter as tk from ._deprecate import deprecate 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) if tk_version == "8.4": deprecate( "Support for Tk/Tcl 8.4", 10, action="Please upgrade to Tk/Tcl 8.5 or newer" )
修改文件时间
将文件时间修改为当前时间的前一年
删除文件