Skip to content

Commit 67ab233

Browse files
committed
Make the GUI Test Runner compatible with Python 3
1 parent b7d2e43 commit 67ab233

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/gui_test_runner.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
Run by Typing: "python gui_test_runner.py"
44
'''
55

6-
from Tkinter import Tk, Frame, Button, Label
6+
try:
7+
# Python 2
8+
from Tkinter import Tk, Frame, Button, Label
9+
except:
10+
# Python 3
11+
from tkinter import Tk, Frame, Button, Label
712
import os
813

914

0 commit comments

Comments
 (0)