MCPcopy Index your code
hub / github.com/python/cpython / init_validators

Method init_validators

Lib/idlelib/configdialog.py:1554–1559  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1552 self.load_windows_cfg()
1553
1554 def init_validators(self):
1555 digits_or_empty_re = re.compile(r'[0-9]*')
1556 def is_digits_or_empty(s):
1557 "Return 's is blank or contains only digits'"
1558 return digits_or_empty_re.fullmatch(s) is not None
1559 self.digits_only = (self.register(is_digits_or_empty), '%P',)
1560
1561 def create_page_windows(self):
1562 """Return frame of widgets for Windows tab.

Callers 1

__init__Method · 0.95

Calls 2

compileMethod · 0.45
registerMethod · 0.45

Tested by

no test coverage detected