tubeshowcase●1,185,207 videos♡ My collection 0
← Learn to Code

Learn to Code07:03

Python buttons 🛎️

Bro Code ↗

From the creator

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()

Published 2020-09-22 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code