Skip to content

starter

Classes:

Name Description
DCSpyStarter

Wrapper object to handle starting and showing welcome screen.

DCSpyStarter

Wrapper object to handle starting and showing welcome screen.

Initialize an object with a global state.

Parameters:

Name Type Description Default

model

LogitechDeviceModel

Logitech device model

required

event

Event

stop event for the main loop

required
Source code in src/dcspy/starter.py
22
23
24
25
26
27
28
29
30
31
32
33
def __init__(self, model: LogitechDeviceModel, event: Event) -> None:
    """
    Initialize an object with a global state.

    :param model: Logitech device model
    :param event: stop event for the main loop
    """
    self.model = model
    self.event = event
    self.parser = ProtocolParser()
    self.CLEAN_BEFORE_LOAD_PLANE = False
    self.CLEAN_WHILE_WAIT_FOR_DATA = False