Lorenzo Gil S�nchez wrote:

I read the pygtk2 tutorial[1] and have some problems with the Layout
Container[2]. When i try to use a vertical scrollbar with my Layout
container something weird happens:

mylayout = gtk.Layout(None, None)
myscrollbar - gtk.VScrollbar(None)
adjust = mylayout.get_vadjustment()
myscrollbar.set_adjustment(adjust)


You have to set the step_increment for the layout adjustments - they aren't set automatically. Try:

adjust.step_increment = 10.0

The thing is that if I click in the trough or if I drag the slider
everything works but if I click in the scrollbar buttons nothing
happens. Do I have to connect some signal in order to make it work? or
is it a bug?



Seems like a bug in the tutorial example. I'll fix it.

John


_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to