Tkinter Spinbox Widget

How do I execute a command that will set a default value for a Tkinter widget? For some reason, they did not give it the .set () attribute

+3
source share
1 answer

Maybe you are looking for the "insert" command?

The following example sets the value to 2:

Tkinter.Spinbox(values=(1,2,3,4))
sb.delete(0,"end")
sb.insert(0,2)
+2
source

Source: https://habr.com/ru/post/1749508/


All Articles