-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider changing default int spinbox step size to 1 #667
Comments
My experience is that when you operate with a big value it is more common that you want to change using bigger steep. For example, if you have a threshold value of 8000, it is more common to change it to 8500 than to 8002. But still for me, when a user creates a function widget, the expected step should be dynamic. |
@Czaki but things like magnitude (thresholds) are usually represented as floats rather than ints, no? In many cases, ints are IDs/categories, and then skipping them makes no sense. (This was the case in the widget I was trying to make for inspecting track IDs. The same would be true for Labels, point IDs...) I think there is something fundamentally different about how the spinbox should treat ints (where there is a natural step) and floats (which are continuous). |
I meet people, who works mainly on But In general, I agree with you that we may suggest using float in such situations (in documentation). We may also keep an option to enable adaptive steep using proper annotation. |
For |
It is nicely documented that the default step size for the spin box is adaptive:
However when I just had a widget annotated as int recently I thought I was going crazy when all of a sudden the + would skip 10 numbers. Would it be possible/desirable to change the default to 1 when the data type is int? (For floats, indeed, the situation is more ambiguous.)
The text was updated successfully, but these errors were encountered: