MCPcopy
hub / github.com/will8211/unimatrix / toggle_status

Method toggle_status

unimatrix.py:567–573  ·  view source on GitHub ↗

On 'o' keypress, turn status display on or off

(self)

Source from the content-addressed store, hash-verified

565 self.stat.update('Speed: %d' % (100 - self.delay // 10), self.delay)
566
567 def toggle_status(self):
568 """
569 On 'o' keypress, turn status display on or off
570 """
571 args.status_off = not args.status_off
572 on_off = 'off' if args.status_off else 'on'
573 self.stat.update('Status: %s' % on_off, self.delay)
574
575
576class Writer:

Callers 1

getMethod · 0.95

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected