Display a message for a short n seconds on the statusbar and return it to its original state.
(self, s, n=3)
| 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.""" |