biometrics_tracker.gui.validators module
- biometrics_tracker.gui.validators.day_validator(event: ttkbootstrap.validation.ValidationEvent) bool
Validates a day value to be numeric and between 1 and 31, inclusive. A more complete validation is done in the :method gui.widgets.DateWidget.validate_date(event): method.
- Parameters
event (ttkbootstrap.validation.ValidationEvent) –
- Returns
Is the value valid?
- Return type
bool
- biometrics_tracker.gui.validators.hour_validator(event: ttkbootstrap.validation.ValidationEvent) bool
Validate an hour value to be numeric and between 1 and 12, inclusive
- Parameters
event (ttkbootstrap.validation.ValidationEvent) –
- Returns
Is the value valid?
- Return type
bool
- biometrics_tracker.gui.validators.minute_validator(event: ttkbootstrap.validation.ValidationEvent) bool
Validate a minute value to be numeric and less than or equal to 59
- Parameters
event (ttkbootstrap.validation.ValidationEvent) –
- Returns
Is the value valid?
- Return type
bool
- biometrics_tracker.gui.validators.month_validator(event: ttkbootstrap.validation.ValidationEvent) bool
Validates a month value to be numeric and between 1 and 12 inclusive
- Parameters
event (ttkbootstrap.validation.ValidationEvent) –
- Returns
Is the value valid?
- Return type
bool
- biometrics_tracker.gui.validators.not_blank_validator(event: ttkbootstrap.validation.ValidationEvent) bool
Validates a value to be non-blank
- Parameters
event (ttkbootstrap.validation.ValidationEvent) –
- Returns
Is the value valid?
- Return type
bool
- biometrics_tracker.gui.validators.numeric_validator(event: ttkbootstrap.validation.ValidationEvent) bool
Validates a value to be numeric
- Parameters
event (ttkbootstrap.validation.ValidationEvent) –
- Returns
Is the value valid?
- Return type
bool
- biometrics_tracker.gui.validators.year_validator(event: ttkbootstrap.validation.ValidationEvent) bool
Validates a year value to be numeric
- Parameters
event (ttkbootstrap.validation.ValidationEvent) –
- Returns
Is the value valid?
- Return type
bool