Update constructors
This commit is contained in:
parent
646cabbb6d
commit
f700d7793a
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue