Validators

Validators

by Patrick Ruoff in 2012

class validators.CValidator(dialog_data=None)[source]

Generic validator, mediates between dialog_data and the associated control

dialog_data = None
SetData(dialog_data)[source]
Clone()[source]
Validate(win)[source]
TransferToWindow()[source]
TransferFromWindow()[source]
GetCtrlValueAs(t)[source]

Tries to interpret the control’s value as type t

SetCtrlValue(value)[source]

Tries to set the control’s value to value

ShowError(error_string)[source]

Indicate an error, try to present error_string to the user

ResetError()[source]

Reset error status

class validators.CSingleItemValidator(data_item_key, transfer=None, dialog_data=None)[source]

Validator that mediates between the control and a single data item by using transfer functions

Use the transfer function transfer to mediate between the data item at data_item_key and the control’s value

data_item_key = None
transfer = None
SetTransfer(transfer)[source]
Clone()[source]
TransferToWindow()[source]
TransferFromWindow()[source]

Previous topic

XRCDialog

Next topic

Transfer Functions

This Page