MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / pop_up

Method pop_up

example_code/item_109.py:67–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 self.timer.countdown(self._get_duration(), self.pop_up)
66
67 def pop_up(self):
68 print("Pop!") # Release the spring
69 self.hot = False
70 self.timer.end()
71
72
73print("Example 2")

Callers 2

test_endMethod · 0.95
test_cancel_earlyMethod · 0.80

Calls 1

endMethod · 0.80

Tested by 2

test_endMethod · 0.76
test_cancel_earlyMethod · 0.64