How Can I Establish A Default String Value On A Tkinter Spinbox?
I have read a good solution for establishing a default numerical value on a Tkinter Spinbox widget when you use the from_ to options. But I have not seen a single one that can help
Solution 1:
If you move the line var.set(v)
to be after creating the widget, the default value will be set.
var = StringVar()
sb = Spinbox(root, values=t, textvariable=var, width=10)
var.set(v)
Post a Comment for "How Can I Establish A Default String Value On A Tkinter Spinbox?"