MCPcopy Create free account
hub / github.com/bpython/bpython / notify

Method notify

bpython/curtsiesfrontend/interaction.py:152–158  ·  view source on GitHub ↗
(self, msg, n=3.0, wait_for_keypress=False)

Source from the content-addressed store, hash-verified

150
151 # interaction interface - should be called from other greenlets
152 def notify(self, msg, n=3.0, wait_for_keypress=False):
153 self.request_context = greenlet.getcurrent()
154 self.message_time = n
155 self.message(msg, schedule_refresh=wait_for_keypress)
156 self.waiting_for_refresh = True
157 self.request_refresh()
158 self.main_context.switch(msg)
159
160 # below really ought to be called from greenlets other than main because
161 # they block

Callers

nothing calls this directly

Calls 2

messageMethod · 0.95
request_refreshMethod · 0.80

Tested by

no test coverage detected