GtkSpinButton is disabled by default in Glade

I added GtkSpinButton to my dialog with Glade and is disabled by default:

enter image description here

What to do to turn on the arrows?

+4
source share
1 answer

You need to configure GtkSpinButton with the Adjustment object as follows (approximate values):

adj = gtk.Adjustment(1, 1, 99, 1, 1, 1) spinBtn = self.builder.get_object("spinbutton1") spinBtn.configure(adj, 1, 0) 
+7
source

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


All Articles