예제 #1
0
    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)
예제 #2
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 = []
예제 #3
0
    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")
예제 #4
0
 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
예제 #5
0
 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
예제 #6
0
파일: base.py 프로젝트: borpin/hass-apps
 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
예제 #7
0
파일: player.py 프로젝트: marcinn/letsplay
 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
예제 #8
0
 def __init__(self):
     self._ev = observable.Observable()