Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Module intctrl :: Class IntValidator |
|
object
--+ |Object
--+ |EvtHandler
--+ |Validator
--+ |PyValidator
--+ | IntValidator
Method Summary | |
---|---|
__init__(self)
| |
Clone(self)
| |
Validates keystrokes to make sure the resulting value will a legal value. | |
Transfer data from window to validator. | |
Transfer data from validator to window. | |
Because each operation on the control is vetted as it's made, the value of the control is always valid. |
Instance Method Details |
---|
OnChar(self, event)Validates keystrokes to make sure the resulting value will a legal value. Erasing the value causes it to be set to 0, with the value selected, so it can be replaced. Similarly, replacing the value with a '-' sign causes the value to become -1, with the value selected. Leading zeros are removed if introduced by selection, and are prevented from being inserted. |
TransferFromWindow(self)Transfer data from window to validator. The default implementation returns False, indicating that an error occurred. We simply return True, as we don't do any data transfer.
|
TransferToWindow(self)Transfer data from validator to window. The default implementation returns False, indicating that an error occurred. We simply return True, as we don't do any data transfer.
|
Validate(self, window)Because each operation on the control is vetted as it's made, the value of the control is always valid.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:24:17 2005 | http://epydoc.sf.net |