def setup_all( self ): self.getControl( MAIN_LABEL ).setLabel( "Radio RDS") openbm.setOnTitleChange(self.onTitleChange) openbm.setOnButtonFieldChange(self.onButtonFieldChange) openbm.setOnRadioStateChange(self.onRadioState) self.onRadioState(self.radioState) openbm.midReqUpdateFields()
def setup_all(self): self.getControl(MAIN_LABEL).setLabel("Radio RDS") # try to connect to dbus, if fails, then error message try: openbm.setOnTitleChange(self.onTitleChange) openbm.setOnDisconnect(self.onStop) openbm.setOnButtonFieldChange(self.onButtonFieldChange) openbm.setOnRadioStateChange(self.onRadioState) openbm.setOnMessage(self.onIBusMessage) openbm.midEnableEmulation() openbm.start() openbm.midReqUpdateFields() except openbm.error, e: dialog = xbmcgui.Dialog() dialog.ok("connection to gateway failed", str(e)) xbmc.output(str(e), xbmc.LOGDEBUG)
def setup_all( self ): self.getControl( MAIN_LABEL ).setLabel( "Radio RDS") # try to connect to dbus, if fails, then error message try: openbm.setOnTitleChange(self.onTitleChange) openbm.setOnDisconnect(self.onStop) openbm.setOnButtonFieldChange(self.onButtonFieldChange) openbm.setOnRadioStateChange(self.onRadioState) openbm.setOnMessage(self.onIBusMessage) openbm.midEnableEmulation() openbm.start() openbm.midReqUpdateFields() except openbm.error,e: dialog = xbmcgui.Dialog() dialog.ok("connection to gateway failed", str(e)) xbmc.output(str(e), xbmc.LOGDEBUG)