This is a really basic example of how to create a tkinter window. The first line is to import tkinter, note in python 2.7 and below tkinter needs to have a capital "Tkinter".The next line we define a frame as "mywindow". The final line we get this window to loop, this is required for tkitner to run.
import tkinter as tk
mywindow = tk.Tk()
mywindow.mainloop()
This Returns the window as shown below.