@edwardsmith999 It isnāt a problem, I simply canāt find the API you are referring to.
Here are the updated versions with minifloatspin.py having a GetInt() function.
There are a few more improvements:
minifloatspin
Changelog:
1.4 Change formatting from old style % modulo to f-strings (formatted string literals)
This change requires you run python3 but given that even python3.6 reached end of life
at the end of 2021, I think that is a resonable position to take.
Added a new function GetInt() return the integer in the control, because it was requested
The halfway click point for the image is calculated more accurately, by basing image size on the textctrl
after it has been assigned text.
Click and hold the SpinCtrl image, will repeat the increment, whilst Left Mouse button is held down.
(The Ctrl Key x 10 adjustment is still honoured)
minifloatspin.py (35.0 KB)
minispinctrl
Changelog:
1.4 The halfway click point for the image is calculated more accurately, by basing image size on the textctrl
after it has been assigned text.
Click and hold the SpinCtrl image, will repeat the increment, whilst Left Mouse button is held down.
minispinctrl.py (30.8 KB)
minispinbutton
minispinbutton.py gets the same Click and hold the SpinCtrl image treatment, which will repeat the increment, whilst Left Mouse button is held down.
minispinbutton.py (21.4 KB)
Let me know if Iāve introduced issues.
Regards,
Rolf