Reputation: 52911
How do I do a command that will set the default value on a Tkinter spinbox widget? For some reason they didn't give it the attribute .set()
Upvotes: 3
Views: 2962
Reputation: 385870
Maybe you're 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)
Upvotes: 2