Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
73
print(
"Example 2"
)
Callers
2
test_end
Method · 0.95
test_cancel_early
Method · 0.80
Calls
1
end
Method · 0.80
Tested by
2
test_end
Method · 0.76
test_cancel_early
Method · 0.64