Updated FloatSpin.py

James Bigler bigler at cs.utah.edu
Wed Mar 14 10:19:55 PDT 2007


I've made some modifications to the very nice FloatSpin widget that =

Andrea Gavana created and thought that I would share with the rest of =

the community.

The biggest change that I've made is the ability to specify open ended =

ranges.  You can say [1,] (min=3D1, no max) or [,0] (max=3D0, no min).  You =

can specify that you don't care about the min or max by specifying None =

for the parameter:

(Equally applicable to the constructor)

[1,] =3D> SetRange(min_val=3D1, max_val=3DNone)
[,0] =3D> SetRange(min_val=3DNone, max_val=3D0)

Or no range

[,]  =3D> SetRange(min_val=3DNone, max_val=3DNone)


Note, that I did change the name of the min and max parameters in the =

constructor, so if you named your parameters you will have to either =

change FloatSpin or your code.  It also defaults to having no range =

([,]) rather than [0,100].

James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FloatSpin.py
Type: text/x-python
Size: 41374 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20070=
314/3106e5f1/FloatSpin.py


More information about the wxpython-users mailing list