maskedit controls

In the masked controls one can set the mask to define what entries should be accepted in the control.

As I am switching over to Unicode build of wxPython I am trying to find a way to define that certain controls should accept all valid Unicode characters (by characters I mean numbers and letters and maybe punctuation marks).

Is there a way of doing this with Python 2.5.2 and wxPython 2.8.8 or is this something which will be easier done in Python 2.6/3.0?

Werner

Werner F. Bruhin wrote:

In the masked controls one can set the mask to define what entries should be accepted in the control.

As I am switching over to Unicode build of wxPython I am trying to find a way to define that certain controls should accept all valid Unicode characters (by characters I mean numbers and letters and maybe punctuation marks).

Is there a way of doing this with Python 2.5.2 and wxPython 2.8.8 or is this something which will be easier done in Python 2.6/3.0?

According to the maskededit docstring:

"""
     The controls now also support (by popular demand) all "visible" characters,
     by use of the * mask character, including unicode characters above
     the standard ANSI keycode range.
     Note: As string.punctuation doesn't typically include all unicode
     symbols, you will have to use includechars to get some of these into
     otherwise restricted positions in your control, such as those specified
     with &.
"""

Does that take care of what you need?

···

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

Robin,

Robin Dunn wrote:

Werner F. Bruhin wrote:

In the masked controls one can set the mask to define what entries should be accepted in the control.

As I am switching over to Unicode build of wxPython I am trying to find a way to define that certain controls should accept all valid Unicode characters (by characters I mean numbers and letters and maybe punctuation marks).

Is there a way of doing this with Python 2.5.2 and wxPython 2.8.8 or is this something which will be easier done in Python 2.6/3.0?

According to the maskededit docstring:

"""
    The controls now also support (by popular demand) all "visible" characters,
    by use of the * mask character, including unicode characters above
    the standard ANSI keycode range.
    Note: As string.punctuation doesn't typically include all unicode
    symbols, you will have to use includechars to get some of these into
    otherwise restricted positions in your control, such as those specified
    with &.
"""

Does that take care of what you need?

Sorry I didn't notice that "*" was added.

That looks like it is exactly what I am looking for.

Thanks
Werner

···