Package wx :: Package lib :: Module intctrl :: Class IntValidator
[frames | no frames]

Type IntValidator

object --+                
         |                
    Object --+            
             |            
    EvtHandler --+        
                 |        
         Validator --+    
                     |    
           PyValidator --+
                         |
                        IntValidator


Validator class used with IntCtrl; handles all validation of input prior to changing the value of the underlying wx.TextCtrl.


Method Summary
  __init__(self)
  Clone(self)
  OnChar(self, event)
Validates keystrokes to make sure the resulting value will a legal value.
  TransferFromWindow(self)
Transfer data from window to validator.
  TransferToWindow(self)
Transfer data from validator to window.
  Validate(self, window)
Because each operation on the control is vetted as it's made, the value of the control is always valid.
    Inherited from PyValidator
  __repr__(self)
    Inherited from Validator
Window GetWindow(self)
bool IsSilent()
(Static method)
  SetBellOnError(doIt)
(Static method)
  SetWindow(self, window)
    Inherited from EvtHandler
  AddPendingEvent(self, event)
  Bind(self, event, handler, source, id, id2)
Bind an event to an event handler.
  Connect(self, id, lastId, eventType, func)
bool Disconnect(self, id, lastId, eventType)
bool GetEvtHandlerEnabled(self)
EvtHandler GetNextHandler(self)
EvtHandler GetPreviousHandler(self)
bool ProcessEvent(self, event)
  ProcessPendingEvents(self)
  SetEvtHandlerEnabled(self, enabled)
  SetNextHandler(self, handler)
  SetPreviousHandler(self, handler)
  Unbind(self, event, source, id, id2)
Disconencts the event handler binding for event from self.
    Inherited from Object
  Destroy(self)
Deletes the C++ object this Python object is a proxy for.
String GetClassName(self)
Returns the class name of the C++ class using wxRTTI.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

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.

Overrides:
wx.Validator.TransferFromWindow

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.

Overrides:
wx.Validator.TransferToWindow

Validate(self, window)

Because each operation on the control is vetted as it's made, the value of the control is always valid.

Overrides:
wx.Validator.Validate

Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:53:28 2007 http://epydoc.sf.net