def __init__(self): self.windingParameters = [ 'name', 'turns', 'layers', 'awg' ] self.params = {} self.params['name'] = ob.Observable('name', None) for w in self.windingParameters[1:]: self.params[w] = ob.Observable(w, 0)
def __init__(self): self.model_Bobbin = { 'width': ob.Observable('width', 0), 'height': ob.Observable('height', 0), 'depth': ob.Observable('depth', 0), 'lip': ob.Observable('lip', 0), 'units': ob.Observable('units', 'in.') } self.model_Windings = []
def __init__(self, *args, **kwargs): self.enviroment = kwargs.get('enviroment', None) self.EnvContainer = kwargs.get('env_container', None) self.JobContainer = kwargs.get('job_container', None) self.scriptDir = kwargs.get('dirScripts', None) self.dirJobs = kwargs.get('dirJobs', None) self.ExecutionPonter = observable.Observable(None) self.ExecutionStatus = observable.Observable(matrixRequiresStateIdle) self.RequiresStack = [] self.JobsDone = [] self.RequiresDone = [] self.log = logging.getLogger("matrixRequiresStackPointer")
def __init__(self, entity_id: str, cfg: dict, room: "Room") -> None: super().__init__() self.entity_id = entity_id self.cfg = cfg self.room = room self.app = room.app self.events = observable.Observable() # type: observable.Observable
def __init__(self, entity_id: str, cfg: dict, room: "Room") -> None: self.entity_id = entity_id self.cfg = cfg self.room = room self.app = room.app self.current_temp = None # type: T.Optional[expr.Temp] self.current_target_temp = None # type: T.Optional[expr.Temp] self.wanted_temp = None # type: T.Optional[expr.Temp] self.resend_timer = None # type: T.Optional[uuid.UUID] self.events = observable.Observable() # type: observable.Observable
def __init__(self, entity_id: str, cfg: dict, room: "Room") -> None: self.entity_id = entity_id self.cfg = cfg self.room = room self.app = room.app self.initialized = False self.current_value = None # type: T.Any self.wanted_value = None # type: T.Any self.resend_timer = None # type: T.Optional[uuid.UUID] self.events = observable.Observable() # type: observable.Observable
def __init__(self, songs=None, shuffle=False, repeat=True): self.songs = list(songs or []) self.shuffle = shuffle self.repeat = repeat self.current = None self.current_index = None self.is_playing = False self.is_paused = False self._ev = observable.Observable() self.volume = 1.0
def __init__(self): self._ev = observable.Observable()