[hv]scale doesn't quite work the way I thought it would...



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 (skip pobox com)
http://www.mojam.com/
http://www.musi-cal.com/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]