Example #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()
Example #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)
Example #3
0
File: gui.py Project: 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)