Fix the import of Tkinter in Python 3+

This commit is contained in:
Maksim Rakitin
2020-04-03 14:03:31 -04:00
parent d2fedbba58
commit 08b7fc9b59
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ else:
from . import openbabel as ob
_obfuncs = _obconsts = ob
try:
import Tkinter as tk
from six.moves import tkinter as tk
from PIL import Image as PIL
from PIL import ImageTk as piltk
except ImportError: # pragma: no cover
+1
View File
@@ -126,6 +126,7 @@ setup(
zip_safe=False,
cmdclass={'build': CustomBuild, 'build_ext': CustomBuildExt, 'install': CustomInstall, 'sdist': CustomSdist},
packages=['openbabel'],
install_requires=[six],
ext_modules=[obextension],
classifiers=[
'Development Status :: 5 - Production/Stable',