On Thu, Mar 20, 2003 at 04:55:52PM -0500, Steve McClure wrote: > > should work, ie. the SpinButton should have a max of 5 when it's > > actually rendered. But it doesn't; the damn thing always has a max of > > 99, and I cannot figure out any sequence of adj2.changed(), > > sb.set_adjustment(), sb.update(), etc. that make it work as expected. > > > > Am I missing some obvious wrinkly of GtkSpinButton and GtkAdjustment? > > Wrinkle yes, obvious no. Try using > > adj2.set_all(adj2.value, adj2.lower, adj2.upper, adj2.step_increment, > adj2.page_increment, adj2.page_size) > > instead of adj2.changed()
Answer added as FAQ 14.9. Note that changed() emits the `changed' signal for the GtkEntry member of GtkSpinButton, which is really *not* what you might expect it was :-) Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/