Python buttons 🛎️

Published: 22 September 2020
on channel: Bro Code
53,287
1.3k

Python tkinter button buttons GUI tutorial beginners code

#Python #tkinter #button #buttons #GUI #tutorial #beginners #code

from tkinter import *

button = you click it, then it does stuff

count = 0

def click():
global count
count+=1
print(count)

window = Tk()

photo = PhotoImage(file='like.png')

button = Button(window,
text="click me!",
command=click,
font=("Comic Sans",30),
fg="#00FF00",
bg="black",
activeforeground="#00FF00",
activebackground="black",
state=ACTIVE,
image=photo,
compound='bottom')
button.pack()

window.mainloop()


On this page of the site you can watch the video online Python buttons 🛎️ with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 22 September 2020, share the link with friends and acquaintances, this video has already been watched 53,287 times on youtube and it was liked by 1.3 thousand viewers. Enjoy your viewing!