forked from clueboard/milc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spinner_qmk
executable file
·44 lines (34 loc) · 885 Bytes
/
spinner_qmk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
"""Test and show off the spinner methods.
PYTHON_ARGCOMPLETE_OK
"""
from time import sleep
from milc import set_metadata
set_metadata(name='spinner_qmk', author='MILC', version='1.8.0')
from milc import cli
@cli.entrypoint('Show off spinners.')
def main(cli):
my_spinner = {
'interval': 100,
'frames': [
'Ψ ψ',
' Ψ ψ ',
' Ψ ψ ',
' ψ ',
' ψ Ψ ',
' ψ Ψ ',
'ψ Ψ',
'Ψ ψ',
' Ψ ψ ',
' Ψ ψ ',
' ψ ',
' ψ Ψ ',
' ψ Ψ ',
'ψ Ψ',
]
}
cli.add_spinner('my_spinner', my_spinner)
with cli.spinner(text='QMK Spinner!', spinner=my_spinner):
sleep(10)
if __name__ == '__main__':
cli()