Qt spinner (#2494)

* move android spinner

* qt spinner

* rotation

* nothing by default

* spin spin

* fix rotate

* style

* spinner for all

* -2

* unused
old-commit-hash: 6c86afee16c706a3c8e787d576ead509373e6b55
This commit is contained in:
Adeeb Shihadeh
2020-11-06 18:44:04 -08:00
committed by GitHub
parent ba8f7b3743
commit 3a05f06ced
15 changed files with 192 additions and 68 deletions
+8 -11
View File
@@ -4,17 +4,14 @@ from common.basedir import BASEDIR
class Spinner():
def __init__(self, noop=False):
# spinner is currently only implemented for android
self.spinner_proc = None
if not noop:
try:
self.spinner_proc = subprocess.Popen(["./spinner"],
stdin=subprocess.PIPE,
cwd=os.path.join(BASEDIR, "selfdrive", "ui", "spinner"),
close_fds=True)
except OSError:
self.spinner_proc = None
def __init__(self):
try:
self.spinner_proc = subprocess.Popen(["./spinner"],
stdin=subprocess.PIPE,
cwd=os.path.join(BASEDIR, "selfdrive", "ui"),
close_fds=True)
except OSError:
self.spinner_proc = None
def __enter__(self):
return self
-2
View File
@@ -7,8 +7,6 @@ from common.basedir import BASEDIR
class TextWindow:
def __init__(self, text):
# text window is only implemented for android currently
self.text_proc = None
try:
self.text_proc = subprocess.Popen(["./text", text],
stdin=subprocess.PIPE,