On/Off Button Switch - Python Tkinter GUI Tutorial

Pubblicato il: 12 gennaio 2021
sul canale di: John Elder
27,406
525

In this video I'll show you how to create a fun little on/off button that will switch between on and off whenever you click on it.

For this video we'll be using two images, and on image and an off image. We'll use those images as the background of a button.

Then we'll create a Boolean (true/false) variable to keep track of whether the button has been clicked (True) or not (False).

Whenever we click the button we'll call a function that will change the Boolean variable from True to False or False to True and update the
image.


In questa pagina del sito puoi guardare il video online On/Off Button Switch - Python Tkinter GUI Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato John Elder 12 gennaio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 27,406 volte e gli è piaciuto 525 spettatori. Buona visione!