diff options
| author | yum <yum.food.vr@gmail.com> | 2022-12-17 17:26:16 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2022-12-17 17:26:16 -0800 |
| commit | 4d836989720523cd0363927e3e066f56b9dc445c (patch) | |
| tree | f7a9ff7cb50eda1ff29e91c78067dcc5e0ce6233 /Python/Dependencies/future-0.18.2/src/tkinter | |
| parent | da754e9cf5b192239826aa1619e1ada3c98daa45 (diff) | |
Check in `future` package
I hit some issues installing Whisper and had to embed this package.
I haven't taken the time to deeply understand what's going on. I think
that embedded Python follows different rules about resolving module
paths than regular system Python.
Basically, `future`'s setup.py has a line like `import src`, where
`src` is a module inside future (like `future/src/__init__.py`). This
doesn't work unless we put that directory on the search path.
Diffstat (limited to 'Python/Dependencies/future-0.18.2/src/tkinter')
13 files changed, 177 insertions, 0 deletions
diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/__init__.py b/Python/Dependencies/future-0.18.2/src/tkinter/__init__.py new file mode 100644 index 0000000..bb730c3 --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/__init__.py @@ -0,0 +1,28 @@ +from __future__ import absolute_import +import sys + +if sys.version_info[0] < 3: + from Tkinter import * + from Tkinter import (_cnfmerge, _default_root, _flatten, + _support_default_root, _test, + _tkinter, _setit) + + try: # >= 2.7.4 + from Tkinter import (_join) + except ImportError: + pass + + try: # >= 2.7.4 + from Tkinter import (_stringify) + except ImportError: + pass + + try: # >= 2.7.9 + from Tkinter import (_splitdict) + except ImportError: + pass + +else: + raise ImportError('This package should not be accessible on Python 3. ' + 'Either you are trying to run from the python-future src folder ' + 'or your installation of python-future is corrupted.') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/colorchooser.py b/Python/Dependencies/future-0.18.2/src/tkinter/colorchooser.py new file mode 100644 index 0000000..6dde6e8 --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/colorchooser.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.colorchooser import * +else: + try: + from tkColorChooser import * + except ImportError: + raise ImportError('The tkColorChooser module is missing. Does your Py2 ' + 'installation include tkinter?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/commondialog.py b/Python/Dependencies/future-0.18.2/src/tkinter/commondialog.py new file mode 100644 index 0000000..eb7ae8d --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/commondialog.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.commondialog import * +else: + try: + from tkCommonDialog import * + except ImportError: + raise ImportError('The tkCommonDialog module is missing. Does your Py2 ' + 'installation include tkinter?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/constants.py b/Python/Dependencies/future-0.18.2/src/tkinter/constants.py new file mode 100644 index 0000000..ffe0981 --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/constants.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.constants import * +else: + try: + from Tkconstants import * + except ImportError: + raise ImportError('The Tkconstants module is missing. Does your Py2 ' + 'installation include tkinter?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/dialog.py b/Python/Dependencies/future-0.18.2/src/tkinter/dialog.py new file mode 100644 index 0000000..113370c --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/dialog.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.dialog import * +else: + try: + from Dialog import * + except ImportError: + raise ImportError('The Dialog module is missing. Does your Py2 ' + 'installation include tkinter?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/dnd.py b/Python/Dependencies/future-0.18.2/src/tkinter/dnd.py new file mode 100644 index 0000000..1ab4379 --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/dnd.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.dnd import * +else: + try: + from Tkdnd import * + except ImportError: + raise ImportError('The Tkdnd module is missing. Does your Py2 ' + 'installation include tkinter?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/filedialog.py b/Python/Dependencies/future-0.18.2/src/tkinter/filedialog.py new file mode 100644 index 0000000..93a1538 --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/filedialog.py @@ -0,0 +1,17 @@ +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?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/font.py b/Python/Dependencies/future-0.18.2/src/tkinter/font.py new file mode 100644 index 0000000..628f399 --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/font.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.font import * +else: + try: + from tkFont import * + except ImportError: + raise ImportError('The tkFont module is missing. Does your Py2 ' + 'installation include tkinter?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/messagebox.py b/Python/Dependencies/future-0.18.2/src/tkinter/messagebox.py new file mode 100644 index 0000000..b43d870 --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/messagebox.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.messagebox import * +else: + try: + from tkMessageBox import * + except ImportError: + raise ImportError('The tkMessageBox module is missing. Does your Py2 ' + 'installation include tkinter?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/scrolledtext.py b/Python/Dependencies/future-0.18.2/src/tkinter/scrolledtext.py new file mode 100644 index 0000000..1c69db6 --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/scrolledtext.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.scrolledtext import * +else: + try: + from ScrolledText import * + except ImportError: + raise ImportError('The ScrolledText module is missing. Does your Py2 ' + 'installation include tkinter?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/simpledialog.py b/Python/Dependencies/future-0.18.2/src/tkinter/simpledialog.py new file mode 100644 index 0000000..dba93fb --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/simpledialog.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.simpledialog import * +else: + try: + from SimpleDialog import * + except ImportError: + raise ImportError('The SimpleDialog module is missing. Does your Py2 ' + 'installation include tkinter?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/tix.py b/Python/Dependencies/future-0.18.2/src/tkinter/tix.py new file mode 100644 index 0000000..8d1718a --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/tix.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.tix import * +else: + try: + from Tix import * + except ImportError: + raise ImportError('The Tix module is missing. Does your Py2 ' + 'installation include tkinter?') diff --git a/Python/Dependencies/future-0.18.2/src/tkinter/ttk.py b/Python/Dependencies/future-0.18.2/src/tkinter/ttk.py new file mode 100644 index 0000000..081c1b4 --- /dev/null +++ b/Python/Dependencies/future-0.18.2/src/tkinter/ttk.py @@ -0,0 +1,12 @@ +from __future__ import absolute_import + +from future.utils import PY3 + +if PY3: + from tkinter.ttk import * +else: + try: + from ttk import * + except ImportError: + raise ImportError('The ttk module is missing. Does your Py2 ' + 'installation include tkinter?') |
