[wxPython] wxoo.spincontrol.SpinControl, wxoo.spinner.Spinner

I just checked in these controls. I thought there might be some people interested in taking a look at them.

The SpinControl is an integer editor similar to wxSpinCtrl, but it provides multiple editing modes (decimal, hexidecimal and binary at the moment), along with the ability to use basicproperty.boundary boundary objects for restricting data values. It generates value changed and status text change events (wxoo.events).

The Spinner is an alternative to the wxSpinButton providing both the spin button's two-direction styles and a 4-direction style (in "compass" format). It generates wxScrollEvent events in response to user clicks on the arrow buttons.

Neither of these classes attempts to duplicate the operation of the in-built classes, instead providing the best support for their particular tasks that I could fashion. The use of wxScrollEvent events isn't particularly satisfying (it separates direction and orientation, requiring two method calls to determine direction in a compass configuration), but I didn't figure creating a new wxScrollEvent-like event class would be particularly useful.

The source is readable online here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxpypropdist/properties/wxoo/

Or you can simply use CVS to check out the project and try it out yourself. Run wxoo.spincontrol to see a spin control and wxoo.spinner to see a spinner.

Enjoy yourselves,
Mike

···

_______________________________________
   Mike C. Fletcher
   http://members.rogers.com/mcfletch/