diff --git a/OBSActionBase.py b/OBSActionBase.py index 49b61ea..2f7e06a 100644 --- a/OBSActionBase.py +++ b/OBSActionBase.py @@ -14,10 +14,8 @@ import threading from loguru import logger as log class OBSActionBase(ActionBase): - def __init__(self, action_id: str, action_name: str, - deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase): - super().__init__(action_id=action_id, action_name=action_name, - deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base) + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) self.HAS_CONFIGURATION = True diff --git a/actions/RecPlayPause/RecPlayPause.py b/actions/RecPlayPause/RecPlayPause.py index 9ff9503..6d0ceef 100644 --- a/actions/RecPlayPause/RecPlayPause.py +++ b/actions/RecPlayPause/RecPlayPause.py @@ -6,10 +6,8 @@ from src.backend.PluginManager.PluginBase import PluginBase import os class RecPlayPause(OBSActionBase): - def __init__(self, action_id: str, action_name: str, - deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase): - super().__init__(action_id=action_id, action_name=action_name, - deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base) + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) self.current_state = -1 def on_ready(self): diff --git a/actions/SwitchScene/SwitchScene.py b/actions/SwitchScene/SwitchScene.py index 8a61a89..3b9ccc1 100644 --- a/actions/SwitchScene/SwitchScene.py +++ b/actions/SwitchScene/SwitchScene.py @@ -13,10 +13,8 @@ gi.require_version("Adw", "1") from gi.repository import Gtk, Adw class SwitchScene(OBSActionBase): - def __init__(self, action_id: str, action_name: str, - deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase): - super().__init__(action_id=action_id, action_name=action_name, - deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base) + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) def on_ready(self): # Connect to obs if not connected diff --git a/actions/ToggleRecord/ToggleRecord.py b/actions/ToggleRecord/ToggleRecord.py index 6a035d7..865d7ec 100644 --- a/actions/ToggleRecord/ToggleRecord.py +++ b/actions/ToggleRecord/ToggleRecord.py @@ -7,10 +7,8 @@ from src.backend.PluginManager.PluginBase import PluginBase import os class ToggleRecord(OBSActionBase): - def __init__(self, action_id: str, action_name: str, - deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase): - super().__init__(action_id=action_id, action_name=action_name, - deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base) + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) self.current_state = -1 def on_ready(self):