X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=trigger.py;h=e75222c87013ec753c3c6297b2a04f9b7c8c306d;hb=c06bfef53f70551e7920bc4facce27f47b89e2ba;hp=9bb7ec5b155a22c257aaa2e0d1f1f33b42005e73;hpb=5e241dc47e497c547463cecc07946ea6882835a7;p=kiosk.git diff --git a/trigger.py b/trigger.py index 9bb7ec5..e75222c 100644 --- a/trigger.py +++ b/trigger.py @@ -1,9 +1,16 @@ -class trigger(object): +#!/usr/bin/env python3 + +from abc import ABC, abstractmethod +from typing import Tuple + + +class trigger(ABC): """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) -> Tuple[str, int]: + pass