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

Re: Another newbie question

2005-12-08 Thread John Bushnell
I think that's supposed to be [(i + j) % 2] for the index to the ("green","red") tuple (since i*8 is always even). [EMAIL PROTECTED] wrote: > Mike, > > Thanks for your insight. It has been a big help. > > I guess I was trying to learn too much with my original code. Trying to > implement inheritan