Kodi Community Forum
Account addon how to? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Account addon how to? (/showthread.php?tid=166887)



Account addon how to? - oki_eng - 2013-06-10

Hi,
I want to create small addon. There is two menu item. Account and Wireless settings.
When i choose Account Setting then screen menu have to change new items like Username , Passwords inputboxes and Save Button.
How can do that? Anyone done thsi kind of app. before?
Thanks

Oki

Here is first menu script i found at forum.

def createListing():
listing = []
listing.append('Account Settings')
listing.append('Wireless Settings')
return listing

def sendToXbmc(listing):

global thisPlugin

for item in listing:
listItem = xbmcgui.ListItem(item)
xbmcplugin.addDirectoryItem(thisPlugin,'',listItem)

xbmcplugin.endOfDirectory(thisPlugin)