MCPcopy Create free account
hub / github.com/CaliDog/certstream-python / _animate_heartbeat

Method _animate_heartbeat

examples/gui.py:156–172  ·  view source on GitHub ↗
(self, _=None, stage=0)

Source from the content-addressed store, hash-verified

154 self.loop.set_alarm_in(0.1, _anim, (self.INTRO_MESSAGE, self))
155
156 def _animate_heartbeat(self, _=None, stage=0):
157 if stage == 0:
158 self.frame.set_footer(
159 urwid.Text(
160 [self.FOOTER_START, ('heartbeat_active', self.HEARTBEAT_ICON)],
161 align=urwid.CENTER
162 )
163 )
164 self.loop.set_alarm_in(0.5, self._animate_heartbeat, 1)
165 elif stage == 1:
166 self.frame.set_footer(
167 urwid.Text(
168 [self.FOOTER_START, ('heartbeat_inactive', self.HEARTBEAT_ICON)],
169 align=urwid.CENTER
170 )
171 )
172 self._heartbeat_is_animating = False
173
174 def focus_right_panel(self, button, user_data):
175 pass

Callers 1

process_messageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected