Re: gtk.spinbutton and set_value

2006-03-29 Thread John Bushnell
Sandro Dentella wrote: > Hi all, > > why my spinbutton doesn't show '120'? > why, if I write in a number, it is reset to 0 wen Enter is pressed? > > TYA > sandro > > >import gtk > >w = gtk.Window() >spin = gtk.SpinButton() >w.add(spin) >w.show_all() >spin.set_value(1

gtk.spinbutton and set_value

2006-03-29 Thread Sandro Dentella
Hi all, why my spinbutton doesn't show '120'? why, if I write in a number, it is reset to 0 wen Enter is pressed? TYA sandro import gtk w = gtk.Window() spin = gtk.SpinButton() w.add(spin) w.show_all() spin.set_value(120) gtk.main() -- Sandro Dentella *:-) http