Ejemplo n.º 1
0
    def updateList(self):
        self.list = []
        if iRcTypeControl.multipleRcSupported():
            self.list.append(self.buildInterfaceList('rctype', _('Configure remote control type'), None, False))
        for x in self.devices:
            dev_type = iInputDevices.getDeviceAttribute(x[1], 'type')
            self.list.append(self.buildInterfaceList(x[1], _(x[0]), dev_type))

        self['list'].setList(self.list)
        self['list'].setIndex(self.currentIndex)
Ejemplo n.º 2
0
    def updateList(self):
        self.list = []
        if iRcTypeControl.multipleRcSupported():
            self.list.append(self.buildInterfaceList('rctype', _('Configure remote control type'), None, False))
        for x in self.devices:
            dev_type = iInputDevices.getDeviceAttribute(x[1], 'type')
            self.list.append(self.buildInterfaceList(x[1], _(x[0]), dev_type))

        self['list'].setList(self.list)
        self['list'].setIndex(self.currentIndex)
Ejemplo n.º 3
0
    def updateList(self):
        self.list = []
        #		print("[InputDevice] iRcTypeControl.multipleRcSupported = {}".format(iRcTypeControl.multipleRcSupported()))

        if iRcTypeControl.multipleRcSupported():
            self.list.append(
                self.buildInterfaceList(
                    'rctype', _('Select to configure remote control type'),
                    None, False))

        for x in self.devices:
            dev_type = iInputDevices.getDeviceAttribute(x[1], 'type')
            self.list.append(self.buildInterfaceList(x[1], _(x[0]), dev_type))


#		print("[InputDevice] list = {}, self.currentIndex = {}".format(self.list, self.currentIndex))
        self["list"].setList(self.list)
        self["list"].setIndex(self.currentIndex)