How To Reset A Spinbox With Tkinter - Python Tkinter GUI Tutorial #130

preview_player
Показать описание
In this video I'll show you how to reset a spinbox back to it's default in Tkinter.

Say you have a spinbox that spins between 0 and 100 and you've spun it on up to 100, but want to reset it to zero. How do you do that? You don't want to hold the spin down button till it spins all the way back down to zero!

Instead we want to click a button to reset the whole thing. That's what I'll show you how to do in this video, for both numbers as well as text!
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

omg sir!! you turned my doubt into a video!!! thanks sir!!! best sir ever!!

shaunakn
Автор

Smash that like button guys n gals! its free! great python tkinter tutorial, Codemy. Thanks

RyanDanielG
Автор

sir you are the "Best Teacher Ever". Sir please clear my one doubt:
how to make a font color changing option in tkinter .

aryanpurohit
Автор

Hi ! Is it possible to update the values of from_ and to variables dynamically ?
I know cget for getting the value but I was wondering how to re set the values

zaord
Автор

I think when tkinter is the easiest framework on python but does not give you many possibilities and the design of the buttons is very old and that's why I left it .... do you know a way to make a program in tkinter look much better? (without images)

george_sepetadelis
Автор

If there is any way to add images to menu please do a video

mynameisgod
Автор

Hii John,
Can you make a video on making a game with tkinter, python...

alpapatel
Автор

Hello, thank you your Video.can you, for example, link: (Bob) to a small database in the list, and create an (info) button that displays information about (Bob) on the screen? Thank you very much

parsabahrambeik
Автор

I had issues with the StrigVar . I tried to set "Mary " as the default and "John" would show.
I had to put var2.set(""Mary")
after the my_spin widget for it work.

Example:
# Set Stringvar
var2 = StringVar(root)

#from_=0, to=100,
my_spin = Spinbox(root,
values=("John", "Mary", "Bob", "Tina"),
font=("helvetica", 20),
textvariable=var2)
var2.set("Mary")
my_spin.pack(pady=20)

fhtommy
welcome to shbcf.ru