Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elif controlID == 301:
- # Add a new item
- log( "Add item (301)" )
- self.changeMade = True
- listControl = self.getControl( 211 )
- num = listControl.getSelectedPosition()
- orderIndex = int( listControl.getListItem( num ).getProperty( "skinshortcuts-orderindex" ) ) + 1
- listitem = xbmcgui.ListItem( __language__(32013) )
- listitem.setProperty( "Path", 'noop' )
- # Add new item to both displayed list and list kept in memory
- self.allListItems.insert( orderIndex, listitem )
- self._display_listitems( num + 1 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement