xmbcgui.WindowXMLDIalog does work with a list of Listitems
#1
My addon was developed under V17.6 and creates a main window (windowXMLDialog) that utilizes a ControlList in the xml file.
It works perfectly under V17.6 but under V18.0 the list items are not displayed.

Essentially my python GUI code does the following using two items as an example below in the onInit function:
python:

ilist=
for i in range(2):
  item=Listitem()
  #create properties here
   .
   .
   .
  # add Listitem object to iList
  iList.append(item)

#add iList to window list
self.addItems(iList)

self.setCurrentListPosition(0)
self.setFocusId(LISTCONTROL_ID)

I used Web-Pdb to attempt to debug the problem after loading data into the window list.
Interactively I ran the self.getCurrentListPosition() function and -1 was returned.
Under V17.6 the value 0 (zero) is returned.
Interactively running self.getListSize() returns the correct number of items in the list.

Is there a reason why the list is not being displayed under V18.0 but will display under V17.6?

Any help will be greatly appreciated.
Reply

Logout Mark Read Team Forum Stats Members Help
xmbcgui.WindowXMLDIalog does work with a list of Listitems0