pdk.Gui.Validators ($Date: 2002/12/04 10:16:26 $)
index
pdk/Gui/Validators.py

GUI validator classes for pdk.

FOG 06.2000

 
Classes
            
wxPython.windows.wxPyValidator(wxPython.windows.wxPyValidatorPtr)
WidgetValidator
TextControlValidator
 
class TextControlValidator(WidgetValidator)
       
  
Method resolution order:
TextControlValidator
WidgetValidator
wxPython.windows.wxPyValidator
wxPython.windows.wxPyValidatorPtr
wxPython.windows.wxValidatorPtr
wxPython.windows.wxEvtHandlerPtr
wxPython.misc.wxObjectPtr

Methods defined here:
OnChar(self, ev)
OnLeaveWindow(self, ev)
OnText(self, ev)
Validate(self, strict=0)
__init__(self, *argT, **optionD)
setWidgetValue(self, value)
 
class WidgetValidator(wxPython.windows.wxPyValidator)
     
Purpose:extended validator class
Detail:works in tight cooperation with the instance passsed as the variable argument (e.g., a pdk.Variables.IntVariable or a pdk.Variables.FloatVariable instance). The .Clone and the .Validate methods are used by the wxWindows framework; the TransferDataToWindow / TransferDataFromWindow methods supposedly are, too. Note that because wxWindows creates more than one validator for each widget being validated (for reasons that escape my understanding), we have to store the last "good" (validated) value for each widget separately (see the _LastGoodValueRegistry class).

 
  
Method resolution order:
WidgetValidator
wxPython.windows.wxPyValidator
wxPython.windows.wxPyValidatorPtr
wxPython.windows.wxValidatorPtr
wxPython.windows.wxEvtHandlerPtr
wxPython.misc.wxObjectPtr

Methods defined here:
Clone(self)
OnChar(self, ev)
OnIdle(self, ev)
OnLeaveWindow(self, ev)
ensures that we have a valid value in the widget when the user is done editing (i.e., leaves the window with the mouse). Posts a TEXT_ENTER event to notify the associated widget. Note that a similar hook with EVT_KILL_FOCUS does cause wxPython to crash when the parent window is destroyed while the validated widget has the focus.
TransferFromWindow(self, *argT)
TransferToWindow(self, *argT)
Validate(self, strict=0)
__del__(self)
__init__(self, variable, normalForegroundColor=None, normalBackgroundColor=None)
checkLiteral(self, literal)
fromLiteral(self, literal)
getOption(self, optionName)
getOptions(self, *optionNameT)
getStatus(self)
getVariable(self)
getWidgetRawValue(self)
revertWidgetValue(self)
setOption(self, optionName, optionValue)
setOptions(self, **optionD)
setStatus(self, newStatus)
setWidgetRawValue(self, value)
toLiteral(self, value)
 
Author
            
$Author: gathmann $