-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (25 loc) · 1013 Bytes
/
main.py
File metadata and controls
29 lines (25 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Import StreamController modules
from src.backend.DeckManagement.InputIdentifier import Input
from src.backend.PluginManager.ActionInputSupport import ActionInputSupport
from src.backend.PluginManager.PluginBase import PluginBase
from src.backend.PluginManager.ActionHolder import ActionHolder
# Import actions
from .actions.Countdown.Countdown import Countdown
class CountdownPlugin(PluginBase):
def __init__(self):
super().__init__()
## Register actions
self.countdown_holder = ActionHolder(
plugin_base = self,
action_base = Countdown,
action_id_suffix="Countdown",
action_name = "Countdown",
action_support = {
Input.Key: ActionInputSupport.SUPPORTED,
Input.Dial: ActionInputSupport.SUPPORTED,
Input.Touchscreen: ActionInputSupport.UNTESTED
}
)
self.add_action_holder(self.countdown_holder)
# Register plugin
self.register()