Exemple #1
0
def validateInputBase(inp: Gui.Input) -> bool:
    val = str(inp.get())
    result = __testInputForInt(val)
    if result:
        val = int(val)
        result = 0 < val <= MAX_BASE
    __markInputAs(inp, result)
    return result
Exemple #2
0
def validateInputValue(inp: Gui.Input) -> bool:
    val = str(inp.get())
    result = __testInputForInt(val)
    __markInputAs(inp, result)
    return result