mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
14 lines
303 B
Python
14 lines
303 B
Python
|
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?')
|
||
|
|