Update constructors

This commit is contained in:
Core447 2024-05-10 17:33:23 +02:00
parent 646cabbb6d
commit f700d7793a
No known key found for this signature in database
GPG Key ID: 5B97C0BD62F98516
4 changed files with 8 additions and 16 deletions

View File

@ -14,10 +14,8 @@ import threading
from loguru import logger as log from loguru import logger as log
class OBSActionBase(ActionBase): class OBSActionBase(ActionBase):
def __init__(self, action_id: str, action_name: str, def __init__(self, *args, **kwargs):
deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase): super().__init__(*args, **kwargs)
super().__init__(action_id=action_id, action_name=action_name,
deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base)
self.HAS_CONFIGURATION = True self.HAS_CONFIGURATION = True

View File

@ -6,10 +6,8 @@ from src.backend.PluginManager.PluginBase import PluginBase
import os import os
class RecPlayPause(OBSActionBase): class RecPlayPause(OBSActionBase):
def __init__(self, action_id: str, action_name: str, def __init__(self, *args, **kwargs):
deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase): super().__init__(*args, **kwargs)
super().__init__(action_id=action_id, action_name=action_name,
deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base)
self.current_state = -1 self.current_state = -1
def on_ready(self): def on_ready(self):

View File

@ -13,10 +13,8 @@ gi.require_version("Adw", "1")
from gi.repository import Gtk, Adw from gi.repository import Gtk, Adw
class SwitchScene(OBSActionBase): class SwitchScene(OBSActionBase):
def __init__(self, action_id: str, action_name: str, def __init__(self, *args, **kwargs):
deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase): super().__init__(*args, **kwargs)
super().__init__(action_id=action_id, action_name=action_name,
deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base)
def on_ready(self): def on_ready(self):
# Connect to obs if not connected # Connect to obs if not connected

View File

@ -7,10 +7,8 @@ from src.backend.PluginManager.PluginBase import PluginBase
import os import os
class ToggleRecord(OBSActionBase): class ToggleRecord(OBSActionBase):
def __init__(self, action_id: str, action_name: str, def __init__(self, *args, **kwargs):
deck_controller: "DeckController", page: Page, coords: str, plugin_base: PluginBase): super().__init__(*args, **kwargs)
super().__init__(action_id=action_id, action_name=action_name,
deck_controller=deck_controller, page=page, coords=coords, plugin_base=plugin_base)
self.current_state = -1 self.current_state = -1
def on_ready(self): def on_ready(self):