Is Multiple range in maskedEdit.Field supported? If not, I have one that does.

Hi all,

I just came across the very useful maskedEdit.py module and demo.

From a quick look at:

- the demo: /Python23/Lib/site-packages/wxPython/demo/MaskedEditControls.py

- wxPython module:
/Python23/Lib/site-packages/wxPython/lib/maskededit.py

I found out that the Field class does not support multiple ranges. It supports specifying a value range by setting a single (min,max) tuple. I have a need for multiple range set. That feature would be useful for checking if a value is inside one of several range set like [(1,223), (240,255)].

So, I implemented that support (while leaving support for the original (min,max) tuple).

The source of the two files is included (search for PRouleau for modified areas).

Is this modification worth checking in?

Cheers,

Pierre

MaskedEditControls.py (28.8 KB)

maskededit.py (331 KB)

Pierre Rouleau wrote:

Is this modification worth checking in?

I'll leave that up to Will Sadkin, but in the future please just send a patch file made using diff. It's much easier to see your changes that way and you don't clog the list with a 300k message that 99% of the people don't want to read.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Pierre Rouleau wrote:

Is this modification worth checking in?

I'll leave that up to Will Sadkin, but in the future please just send a patch file made using diff. It's much easier to see your changes that way and you don't clog the list with a 300k message that 99% of the people don't want to read.

Oops, Sorry about that, will do.
Would it be better to send these diff to wxPython-dev instead?
I tried joining it (wxpython-dev-subscribe) but sending the email failed.

Pierre