hi
has anyone created float point controls such as SpinCtrl, Sliders etc...
It would be great to be able to specify, like in tkinter's Slider class, the resolution of the controls, the size of the granularity for each control.
thanks
enrike
hi
has anyone created float point controls such as SpinCtrl, Sliders etc...
It would be great to be able to specify, like in tkinter's Slider class, the resolution of the controls, the size of the granularity for each control.
thanks
enrike
Hi Enrike,
altern wrote:
hi
has anyone created float point controls such as SpinCtrl, Sliders etc...
It would be great to be able to specify, like in tkinter's Slider class, the resolution of the controls, the size of the granularity for each control.
Have you checked out the demo which is available with wxPython, just about every available control has a little demo in it.
Get it from here if you don't have it yet:
http://www.wxpython.org/download.php#binaries
E.g. under More Windows/Controls you have the MaskedEditControls and the MaskedNumCtrl, these don't have spins or sliders but handle floats and then there are SpinCtrl and Slider but I think they only handle integer.
Then there is Andrea's FloatSpin: http://xoomer.alice.it/infinity77/eng/freeware.html
Werner
Hi Enrike,
has anyone created float point controls such as SpinCtrl,
Sliders etc...
It would be great to be able to specify, like in tkinter's
Slider class, the resolution of the controls, the size of the
granularity for each control.
There is an implementation of a floating point spinctrl, you can find it on my web page here:
http://xoomer.alice.it/infinity77/eng/freeware.html#floatspin
As far as I know, there is no floating point slider implementation, but it shouldn't be that hard to adapt FloatSpin methods to work with a slider.
Andrea.
_________________________________________
Andrea Gavana (gavana@kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London
Direct Tel: +44 (0) 20 717 08936
Mobile Tel: +44 (0) 77 487 70534
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
I can vouch for the quality and usefulness of Andrea's floatspin control.
The one non-obvious aspect of using it with a database back end is the
need to explicitly cast it to float in the insert or update statement. That
threw me for a long delay.
Rich
On Thu, 8 Feb 2007, Gavana, Andrea wrote:
There is an implementation of a floating point spinctrl, you can find it
on my web page here:
http://xoomer.alice.it/infinity77/eng/freeware.html#floatspin
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863