enthought / enthought/traitsui

ENH: Update SimpleSpinEditor to allow floats and be able to specify the step of the spin control.

Open
#1,776 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Currently the SimpleSpinEditor is only applicable to integer values and the step/increment of the spin control is fixed to the value of one (click on spinner, arrow up/down or rolling the mousewheel) or 10 (PageUp/PageDown).

For greater flexibility it would be great if the SimpleSpinEditor could also handle float values and that the step used in the spin control could be specified explicitly.

It would also be great if the SimpleSpinEditor would behave similar to the wx.FloatSpin, which by the use of modifier keys
`Shift`, `Ctrl`, `Alt` will increase the step value for the spinner by a factor of 2, 10 and 100, respectively.
A combination of `Shift`, `Ctrl`, `Alt` increment the step value by the product of their factors.
`PgUp` & `PgDn` = 10 * increment * the product of the `Shift`, `Ctrl`, `Alt` factors;

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.