from tkinter import * # Importing the tkinter module root = Tk() # Creating a window label = Label(root, text="Your Text") # Creating a label label.pack() # Putting the label on the window label.mainloop() # Opening the window