/
valemobil
/
python-future
Обзор
Документация
Войти
/
valemobil
/
python-future
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/tkinter/filedialog.py
17 строк
529 B
Ed Schofield
Add more underscore-prefixed imports to `tkinter` (issue #233)
22 сен 2016, 06:34
22 сен 2016, 06:34
5cd9587
Код
Авторство
О чём код?
from __future__ import absolute_import from future.utils import PY3 if PY3: from tkinter.filedialog import * else: try: from FileDialog import * except ImportError: raise ImportError('The FileDialog module is missing. Does your Py2 ' 'installation include tkinter?') try: from tkFileDialog import * except ImportError: raise ImportError('The tkFileDialog module is missing. Does your Py2 ' 'installation include tkinter?')