e75222c87013ec753c3c6297b2a04f9b7c8c306d
[kiosk.git] / trigger.py
1 #!/usr/bin/env python3
2
3 from abc import ABC, abstractmethod
4 from typing import Tuple
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) -> Tuple[str, int]:
16         pass