I created a scale widget in Python like so:

    adj = gtk.GtkAdjustment(1,1,6,1,1,1)
    hsc = gtk.GtkHScale(adj)

If I click in the trough, it increments or decrements by 1.  However, if I
drag the slider, it increments by 0.1.  I only want it to take on integer
values between 1 and 5 (inclusive).  Is there a way to force the step
increment to actually equal 1 as the GtkAdjustment reference documentation
indicates?  Also, can I get it to only display values as integers ("1"
instead of "1.0")?

Thanks,

-- 
Skip Montanaro ([EMAIL PROTECTED])
http://www.mojam.com/
http://www.musi-cal.com/

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to