Ejemplo n.º 1
0
	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()
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
Archivo: gui.py Proyecto: Inz999/OpenBM
	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)