Package schrodinger :: Package application :: Package desmond :: Module util :: Class EntryRestrictor
[hide private]
[frames] | no frames]

Class EntryRestrictor

object --+
         |
        EntryRestrictor

Similar to EntryFieldRestrictor, but for the 'Entry' widget instead of the 'EntryField' widget.

Instance Methods [hide private]
 
__init__(self, excl_char='', incl_char=None, empty_ok=False, check=None)
Note that 'excl_char' has higher priority (means that if a char is in 'excl_char', it will NOT be allowed to put into the field even though it is in 'incl_char').
 
__call__(self, text)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, excl_char='', incl_char=None, empty_ok=False, check=None)
(Constructor)

 

Note that 'excl_char' has higher priority (means that if a char is in 'excl_char', it will NOT be allowed to put into the field even though it is in 'incl_char').

Parameters:
  • excl_char - A string containing the chars that will not be allowed to put into the entry field.
  • incl_char - A string containing the chars that will be allowed to put into the entry field. 'incl_char' can be None, which means any char is allowed.
Overrides: object.__init__