Step in scale widget? (original) (raw)

MAD_SHS (MAD SHS)

April 21, 2025, 4:32pm 1

In GIMP 2.10 python plugins there was a type of input param PF_SLIDER with (min, max, step) settings.

In GIMP 3.0.2 I use procedure.add_int_argument + dialog.get_scale_entry to make slider widget, but there is no way to set step value for slider.

Is it ever possible to make slider widget with step values in gtk3?

Looks like you can set it with ___.set_increments ():

GimpUi.LabelSpin.set_increments

MAD_SHS (MAD SHS) April 22, 2025, 9:07am 3

Thanx, exactly what I was looking for