/
githubmirror
/
os-python3.9
Обзор
Документация
Войти
/
githubmirror
/
os-python3.9
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
bullseye
debian/patches/tkinter-import.diff
16 строк
475 B
Matthias Klose
Imported Debian patch 3.9.2-1
21 мар 2022, 14:03
21 мар 2022, 14:03
96023b3
Код
Авторство
О чём код?
# DP: suggest installation of python-tk package on failing _tkinter import --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -34,7 +34,10 @@ import enum import sys import types -import _tkinter # If this fails your Python may not be configured for Tk +try: + import _tkinter +except ImportError as msg: + raise ImportError(str(msg) + ', please install the python3-tk package') TclError = _tkinter.TclError from tkinter.constants import * import re