Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.66 KB | None | 0 0
  1.         elif controlID == 301:
  2.             # Add a new item
  3.             log( "Add item (301)" )
  4.             self.changeMade = True
  5.             listControl = self.getControl( 211 )
  6.             num = listControl.getSelectedPosition()
  7.             orderIndex = int( listControl.getListItem( num ).getProperty( "skinshortcuts-orderindex" ) ) + 1
  8.            
  9.             listitem = xbmcgui.ListItem( __language__(32013) )
  10.             listitem.setProperty( "Path", 'noop' )
  11.            
  12.             # Add new item to both displayed list and list kept in memory
  13.             self.allListItems.insert( orderIndex, listitem )
  14.             self._display_listitems( num + 1 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement