Esempio n. 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
Esempio n. 2
0
def validateInputValue(inp: Gui.Input) -> bool:
    val = str(inp.get())
    result = __testInputForInt(val)
    __markInputAs(inp, result)
    return result