HELP - self.theList.Item(9).setLabel(self.test1)
#1
Hi,

I am currently adding new features to my xbmcmail sss mod script and have hit a snag using a xbmc list

Code:
elif control == self.theList:
             lstPos = self.theList.getSelectedPosition()
              
              if lstPos == 0:
                         keyboard = xbmc.Keyboard("", "Enter Test Name")
                         keyboard.doModal()
                         self.test1 = keyboard.getText()
                         if self.test1 == "":
                         ###self.theList.Item(9).setLabel(self.test1)###


I need it so once the test has been entered in on the keyboard it renames a different list item than the current selected one (eg. list item 9)
If it was just renaming the current list item i would be able to use the:

self.theList.getSelectedItem(lstPos).setLabel(self.server1)

line.

Please help

Stanley87
Reply

Logout Mark Read Team Forum Stats Members Help
HELP - self.theList.Item(9).setLabel(self.test1)0