13 lines
302 B
Python
13 lines
302 B
Python
|
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?')
|