projects
/
kiosk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix cameras, improve weather, delegate health renderer to a helper,
[kiosk.git]
/
trigger.py
diff --git
a/trigger.py
b/trigger.py
index d2c31635d084888736fb7712f65d8054f1e5c630..842230bf184f1edc784d6a1581ffe905b5772d94 100644
(file)
--- a/
trigger.py
+++ b/
trigger.py
@@
-1,10
+1,16
@@
+#!/usr/bin/env python3
-class trigger(object):
+from abc import ABC, abstractmethod
+from typing import List, Tuple, Optional
+
+
+class trigger(ABC):
"""Base class for something that can trigger a page becomming active."""
PRIORITY_HIGH = 100
PRIORITY_NORMAL = 50
PRIORITY_LOW = 0
"""Base class for something that can trigger a page becomming active."""
PRIORITY_HIGH = 100
PRIORITY_NORMAL = 50
PRIORITY_LOW = 0
- def get_triggered_page_list(self):
- return None
+ @abstractmethod
+ def get_triggered_page_list(self) -> Optional[List[Tuple[str, int]]]:
+ pass