Difference between tkinter and Tkinter
It’s simple. For python2 it is: from Tkinter import * For python3 it is: from tkinter import * Here’s the way how can you forget about this confusion once and for all: try: from Tkinter import * except ImportError: from tkinter import *