Commits

Anthony Tuininga committed 412a0d2

Enable support for both Python 2.x and Python 3.x.

Comments (0)

Files changed (1)

samples/Tkinter/SimpleTkApp.py

-from Tkinter import *
+try:
+    from tkinter import *
+except ImportError:
+    from Tkinter import *
 
 root = Tk()
 root.title('Button')