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)
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)
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)