Answers for "tkinter toplevel"

0

tkinter toplevel

from tkinter import *

root = Tk()
l1 = Label(root, text="Main Window Label")
l1.pack()

top = Toplevel()
l2 = Label(top, text="Toplevel Window Label")
l2.pack()
top.mainloop()
root.mainloop()
Posted by: Guest on February-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language