我将GtkSpinButton添加到Glade的对话框中,默认情况下禁用它:
我该怎么做才能启用箭头?
解决方法:
您需要使用Adjustment对象配置GtkSpinButton,如下所示(示例值):
adj = gtk.Adjustment(1, 1, 99, 1, 1, 1)
spinBtn = self.builder.get_object("spinbutton1")
spinBtn.configure(adj, 1, 0)
标签:python,pygtk,glade
来源: https://codeday.me/bug/20190610/1208962.html