From f700d7793a98d35758bd43378878f5c69f6fbfb8 Mon Sep 17 00:00:00 2001 From: Core447 Date: Fri, 10 May 2024 17:33:23 +0200 Subject: [PATCH] Update constructors --- OBSActionBase.py | 6 ++---- actions/RecPlayPause/RecPlayPause.py | 6 ++---- actions/SwitchScene/SwitchScene.py | 6 ++---- actions/ToggleRecord/ToggleRecord.py | 6 ++---- 4 files changed, 8 insertions(+), 16 deletions(-) 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):