-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6cfc286
commit bdb9988
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import tidal | ||
import tidal_helpers | ||
from app import MenuApp | ||
from scheduler import get_scheduler | ||
import term | ||
import sys | ||
import ujson | ||
import os | ||
import functools | ||
import settings | ||
from dashboard.resources import woezel_repo | ||
|
||
|
||
class Store(MenuApp): | ||
|
||
APP_ID = "store" | ||
TITLE = "EMF 2022 - TiDAL" | ||
|
||
@property | ||
def choices(self): | ||
# Note, the text for each choice needs to be <= 16 characters in order to fit on screen | ||
choices = [] | ||
return choices | ||
|
||
def progress(self, text, error=False, wifi=False): | ||
self.window.println(text) | ||
|
||
def on_start(self): | ||
super().on_start() | ||
woezel_repo.update(_showProgress=self.progress) | ||
self.data = woezel_repo.load() | ||
|
||
def on_activate(self): | ||
super().on_activate() |