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