Skip to content

Commit

Permalink
Adding an "Idle spinner app" - mostly for aiding hardware testing
Browse files Browse the repository at this point in the history
  • Loading branch information
CRImier committed Mar 28, 2018
1 parent 8d8dc4d commit 2f26793
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Empty file added apps/utils/spinner/__init__.py
Empty file.
22 changes: 22 additions & 0 deletions apps/utils/spinner/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
menu_name = "Spinner"

from ui import Throbber
from helpers import ExitHelper

i = None
o = None

def init_app(input, output):
global i, o
i = input; o = output

class InputlessThrobber(Throbber):
def activate_keymap(self):
pass

def callback():
eh = ExitHelper(i)
th = InputlessThrobber(i, o, message="Idle spinner")
eh.set_callback(th.stop)
eh.start()
th.activate()

0 comments on commit 2f26793

Please sign in to comment.