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