nick34992
5/10/2017 - 1:23 AM

Python: TKInter: Label(), Button(), pack()

Python: TKInter: Label(), Button(), pack()

from tkinter import Tk, Label, Button

root = Tk()

# widget class + pack() geometry manager method
label_widget = Label(root, text="Label Widget").pack()
button_widget = Button(root, text="Button Widget").pack()

# root window loop
root.mainloop()