mirror of
https://github.com/3minbe/DBC_Converter.git
synced 2026-05-17 17:43:59 +09:00
33 lines
599 B
Python
33 lines
599 B
Python
"""
|
|
Author: Dogeek
|
|
License: GNU GPLv3
|
|
Source: This repository
|
|
|
|
ValidatedEntry widgets for number validation.
|
|
"""
|
|
|
|
|
|
from .validated_entry import ValidatedEntry
|
|
from .validators import PercentValidator, IntValidator, FloatValidator
|
|
|
|
|
|
class PercentEntry(ValidatedEntry):
|
|
"""
|
|
Validates floats between 0 and 100
|
|
"""
|
|
VALIDATOR = PercentValidator
|
|
|
|
|
|
class IntEntry(ValidatedEntry):
|
|
"""
|
|
Validates integers (no floating point)
|
|
"""
|
|
VALIDATOR = IntValidator
|
|
|
|
|
|
class FloatEntry(ValidatedEntry):
|
|
"""
|
|
Validated floating-point numbers.
|
|
"""
|
|
VALIDATOR = FloatValidator
|