def __init__(self, name, min, max, default=None): if not settings.settings( ["miscellaneous", "short_integer_opt_out"]): content = language.ShortIntegerContent else: content = language.IntegerContent if "en" in language.language_map and settings.settings( ["miscellaneous", "integer_remap_opt_in"]): content.builders[1] = MapIntBuilder(numbers_map_1_to_9()) element = Integer(None, min, max, content=content) RuleWrap.__init__(self, name, element, default=default)
def __init__(self, name=None, zero=False, default=None): element = Number(None, zero=zero) RuleWrap.__init__(self, name, element, default=default)
def __init__(self, name, min, max, default=None): element = Integer(None, min, max, content=language.ShortIntegerContent) RuleWrap.__init__(self, name, element, default=default)
def __init__(self, name, min, max, default=None): element = IntegerST(None, min, max) RuleWrap.__init__(self, name, element, default=default)
def __init__(self, name=None, min=1, max=12, as_int=True, default=None): element = Digits(name=None, min=min, max=max, as_int=as_int) RuleWrap.__init__(self, name, element, default=default)