def tSpinButton(table, x1, x2, y1, y2,
value, lower, upper, step_incr=1, page_incr=10, callback=None):
adj = Gtk.Adjustment(value, lower, upper, step_incr, page_incr)
spin = Gtk.SpinButton(adj, digits=0)
if callback:
spin.connect('value-changed', callback)
table.attach(spin, x1, x2, y1, y2)
return spin
评论列表
文章目录