Is it possible to have sliders instead of spinners in python scripts?
Something to replace the former PF_SLIDER?
Hi
Both the ScaleEntry and the SpinScale widgets have slider functions and they also have +/- adjustment. But they are not the default widget for entering values so they have to be specified when you create the dialog
For example
dialog.get_widget(“parametername”, GimpUi.SpinScale.gtype)
The gtype has two underscores each side which makes it look bold here! Anyway that is how you do it in Python. Hope that helps
JimDee2
Thank you Jim.
Yes that helped.
SpinScale was the expression I missed.
(PS.: I find the sliders in python scripts look ugly compared to the ones in ScriptFu)
I agree with your PS! For most of my personal plugins I find SpinScale is the least offensive.
JimDee2