I added GtkSpinButton to my dialog from Glade and it is disabled by default:
What should I do to make arrows enabled?
You need to configure the GtkSpinButton with the Adjustment object as follows (example values):
adj = gtk.Adjustment(1, 1, 99, 1, 1, 1)
spinBtn = self.builder.get_object("spinbutton1")
spinBtn.configure(adj, 1, 0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With