GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Public Member Functions | |
def | __init__ |
def | Clone |
def | Validate |
def | TransferToWindow |
def | TransferFromWindow |
This validator checks condition and calls callback in case the condition is not fulfilled.
Definition at line 340 of file widgets.py.
def widgets.GenericValidator.__init__ | ( | self, | |
condition, | |||
callback | |||
) |
Standard constructor. @param condition function which accepts string value and returns T/F @param callback function which is called when condition is not fulfilled
Definition at line 344 of file widgets.py.
References widgets.GenericValidator._callback, and widgets.GenericValidator._condition.
def widgets.GenericValidator.Clone | ( | self | ) |
Standard cloner. Note that every validator must implement the Clone() method.
Definition at line 354 of file widgets.py.
References widgets.GenericValidator._callback, and widgets.GenericValidator._condition.
def widgets.GenericValidator.TransferFromWindow | ( | self | ) |
Transfer data from window to validator.
Definition at line 378 of file widgets.py.
def widgets.GenericValidator.TransferToWindow | ( | self | ) |
Transfer data from validator to window.
Definition at line 372 of file widgets.py.
def widgets.GenericValidator.Validate | ( | self, | |
win | |||
) |
Validate the contents of the given text control.
Definition at line 361 of file widgets.py.
References widgets.GenericValidator._callback, widgets.GenericValidator._condition, mapdisp.MapFrameBase.GetWindow(), histogram.HistogramFrame.GetWindow(), and render.Map.GetWindow().