Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_tkinter_finder.py 668B

1 year ago
1234567891011121314151617181920212223
  1. """ Find compiled module linking to Tcl / Tk libraries
  2. """
  3. import sys
  4. import tkinter
  5. from tkinter import _tkinter as tk
  6. from ._deprecate import deprecate
  7. try:
  8. if hasattr(sys, "pypy_find_executable"):
  9. TKINTER_LIB = tk.tklib_cffi.__file__
  10. else:
  11. TKINTER_LIB = tk.__file__
  12. except AttributeError:
  13. # _tkinter may be compiled directly into Python, in which case __file__ is
  14. # not available. load_tkinter_funcs will check the binary first in any case.
  15. TKINTER_LIB = None
  16. tk_version = str(tkinter.TkVersion)
  17. if tk_version == "8.4":
  18. deprecate(
  19. "Support for Tk/Tcl 8.4", 10, action="Please upgrade to Tk/Tcl 8.5 or newer"
  20. )