Bug report
If the value parameter of a Spinbox is set, even to an int, the increment/decrement buttons do nothing. If this isn't the right place for this bug, sorry.
from tkinter import *
root = Tk()
intvar = IntVar(root)
spinbox_with_value = Spinbox(root, from_ = 1, to = 12, value = 12, textvariable = intvar)
spinbox_with_value.pack()
# The text box is still editable, but the buttons do nothing.
Without the value parameter set, the buttons work.
from tkinter import *
root = Tk()
intvar = IntVar(root)
intvar.set(12) # Workaround, since the value parameter doesn't work
spinbox_without_value = Spinbox(root, from_ = 1, to = 12, textvariable = intvar)
spinbox_without_value.pack()
# This works as intended.
Your environment
- CPython versions tested on: 3.11.1, 3.9.8, 3.6.2
- Operating system and architecture: Windows 10 22H2
Bug report
If the
valueparameter of a Spinbox is set, even to anint, the increment/decrement buttons do nothing. If this isn't the right place for this bug, sorry.Without the
valueparameter set, the buttons work.Your environment