import tkinter as tk # Create a new window window = tk.Tk() # Set the window title window.title("My GUI") # Add a label to the window label = tk.Label(window, text="This is example for label") label.pack() # Add a button to the window button = tk.Button(window, text="Click me!") button.pack() # Add a Checkbutton to the window chk1 = tk.Checkbutton(window, text="Python") chk2 = tk.Checkbutton(window, text="Java") chk1.pack() chk2.pack() # Add a entrybox to the window entry= tk.Entry(window, text="") entry.pack() # Start the event loop window.mainloop()