MCPcopy Index your code
hub / github.com/PyQt5/PyQt / reset

Method reset

Demo/VerificationCode.py:54–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 self.timer.start(60, self)
53
54 def reset(self):
55 self._code = "".join(sample(WORDS, 4)) # 随机4个字符
56 self.setText(self._code)
57
58 def check(self, code):
59 return self._code == str(code) if self._sensitive else self._code.lower() == str(code).lower()

Callers 3

__init__Method · 0.95
mouseReleaseEventMethod · 0.95
set_resetMethod · 0.80

Calls 1

setTextMethod · 0.45

Tested by

no test coverage detected