3. Tkinter: Widgets

Subscribers:
5,850
Published on ● Video Link: https://www.youtube.com/watch?v=6xOxVSZR06U



Duration: 2:15
33 views
0


Video code

from tkinter import *

def clicked():
label.configure(text="I have been clicked")

window = Tk()
window.title("My program")
window.geometry("350x200")

label = Label(window, text="Click me", bg="red",fg="white")
label.pack()

button = Button(window, text="Click here",command=clicked)
button.pack()


window.mainloop()







Tags:
Tkinter
python
introduction
intro
tutorial
inputs
outputs
widgets
window
layouts
keyboard
frames
grid
side
place