import tkinter as tk window = tk.Tk() label = tk.Label(text="Python rocks!") label.pack() window.mainloop()