projects
/
kiosk.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Changes.
[kiosk.git]
/
trigger.py
1
#!/usr/bin/env python3
2
3
from abc import ABC, abstractmethod
4
from typing import List, Tuple, Optional
5
6
7
class trigger(ABC):
8
"""Base class for something that can trigger a page becomming active."""
9
10
PRIORITY_HIGH = 100
11
PRIORITY_NORMAL = 50
12
PRIORITY_LOW = 0
13
14
@abstractmethod
15
def get_triggered_page_list(self) -> Optional[List[Tuple[str, int]]]:
16
pass