MCPcopy Index your code
hub / github.com/bpython/bpython / message

Method message

bpython/urwid.py:198–203  ·  view source on GitHub ↗

Display a message for a short n seconds on the statusbar and return it to its original state.

(self, s, n=3)

Source from the content-addressed store, hash-verified

196 self.settext(self.s)
197
198 def message(self, s, n=3):
199 """Display a message for a short n seconds on the statusbar and return
200 it to its original state."""
201
202 self.settext(s)
203 self.timer = self.main_loop.set_alarm_in(n, self._check)
204
205 def _reset_timer(self):
206 """Reset the timer from message."""

Callers 1

notifyMethod · 0.45

Calls 1

settextMethod · 0.95

Tested by

no test coverage detected