-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
27 lines (23 loc) · 924 Bytes
/
main.py
File metadata and controls
27 lines (23 loc) · 924 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
# Import StreamController modules
from src.backend.PluginManager.PluginBase import PluginBase
from src.backend.PluginManager.ActionHolder import ActionHolder
# Import actions
from .actions.ToggleState.ToggleState import ToggleState
class PluginTemplate(PluginBase):
def __init__(self):
super().__init__()
## Register actions
self.simple_action_holder = ActionHolder(
plugin_base = self,
action_base = ToggleState,
action_id = "dev_core447_Template::ToggleState", # Change this to your own plugin id
action_name = "Toggle State",
)
self.add_action_holder(self.simple_action_holder)
# Register plugin
self.register(
plugin_name = "QEMU",
github_repo = "https://github.com/StreamController/QEMUPlugin",
plugin_version = "1.0.0",
app_version = "1.5.0-beta.8"
)