generated from dopt-python/py311
23 lines
523 B
Python
23 lines
523 B
Python
from PySide6.QtCore import QObject, Signal, Slot
|
|
|
|
from KSG_anomaly_detection.gui_ai_on_off import ToggleGUI
|
|
|
|
|
|
class WindowManager(QObject):
|
|
recreate_v1 = Signal()
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.v1 = None
|
|
|
|
self.recreate_v1.connect(self._create_v1)
|
|
|
|
@Slot()
|
|
def _create_v1(self):
|
|
self.v1 = ToggleGUI("Visper 1", "#e6e6fa")
|
|
self.v1.move(100, 100)
|
|
self.v1.show()
|
|
|
|
def get_checkbox_state_v1(self):
|
|
return self.v1 and self.v1.is_enabled()
|