Skip to content

Commit 0683fe0

Browse files
committed
another fix of setupext.py to use tkinter for py3
1 parent 148025b commit 0683fe0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setupext.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,10 @@ def query_tcltk():
788788
return TCL_TK_CACHE
789789

790790
# By this point, we already know that Tkinter imports correctly
791-
import Tkinter
791+
if sys.version_info[0] < 3:
792+
import Tkinter
793+
else:
794+
import tkinter as Tkinter
792795
tcl_lib_dir = ''
793796
tk_lib_dir = ''
794797
# First try to open a Tk window (requires a running X server)

0 commit comments

Comments
 (0)