def __init__(self, session): Screen.__init__(self, session) self["Dishpixmap"] = BlinkingPixmapConditional() self["Dishpixmap"].onVisibilityChange.append(self.DishpixmapVisibilityChanged) self["turnTime"] = Label("") self["posFrom"] = Label("") self["posGoto"] = Label("") self["From"] = Label (_("From :")) self["Goto"] = Label (_("Goto :")) self.rotorTimer = eTimer() self.rotorTimer.callback.append(self.updateRotorMovingState) self.turnTimer = eTimer() self.turnTimer.callback.append(self.turnTimerLoop) self.showTimer = eTimer() self.showTimer.callback.append(self.hide) config.usage.showdish.addNotifier(self.configChanged) self.configChanged(config.usage.showdish) self.rotor_pos = self.cur_orbpos = config.misc.lastrotorposition.getValue() self.turn_time = self.total_time = None self.cur_polar = 0 self.__state = self.STATE_HIDDEN self.onShow.append(self.__onShow) self.onHide.append(self.__onHide) self.__event_tracker = ServiceEventTracker(screen=self, eventmap= { iPlayableService.evStart: self.__serviceStarted, iPlayableService.evTunedIn: self.__serviceTuneEnd, iPlayableService.evTuneFailed: self.__serviceTuneEnd, })
def __init__(self, session): Screen.__init__(self, session) self["Dishpixmap"] = BlinkingPixmapConditional() self["Dishpixmap"].onVisibilityChange.append( self.DishpixmapVisibilityChanged) self["turnTime"] = Label("") self["posFrom"] = Label("") self["posGoto"] = Label("") self["From"] = Label(_("From:")) self["Goto"] = Label(_("Goto:")) self["Tuner"] = Label(_("Tuner :")) self["tunerName"] = Label("") self["turnSpeed"] = Label("") self.updateRotorSatList() self.rotorTimer = eTimer() self.rotorTimer.callback.append(self.updateRotorMovingState) self.turnTimer = eTimer() self.turnTimer.callback.append(self.turnTimerLoop) self.timeoutTimer = eTimer() self.timeoutTimer.callback.append(self.testIsTuned) self.showdish = config.usage.showdish.value config.usage.showdish.addNotifier(self.configChanged) self.rotor_pos = self.cur_orbpos = config.misc.lastrotorposition.value self.tuner = self.turn_time = self.total_time = self.pmt_timeout = self.close_timeout = self.rotor_sat = None self.cur_polar = 0 self.__state = self.STATE_HIDDEN self.onShow.append(self.__onShow) self.onHide.append(self.__onHide) self.__event_tracker = ServiceEventTracker( screen=self, eventmap={ iPlayableService.evStart: self.__serviceStarted, iPlayableService.evTunedIn: self.__serviceTunedIn, })
def __init__(self, session): Screen.__init__(self, session) self["Dishpixmap"] = BlinkingPixmapConditional() self["Dishpixmap"].onVisibilityChange.append( self.DishpixmapVisibilityChanged) #self["Dishpixmap"] = Pixmap() config.usage.showdish.addNotifier(self.configChanged) self.configChanged(config.usage.showdish)