2011-09-09, 02:34
Is there a way to use ListItem to execute another program? Here's how I'm doing it now:
launchpath = "os.startfile(%s %s%s)" % (x_addon.getSetting('binary_loc'),x_addon.getSetting('ROM_loc'),file_listing[counter])
thumbImage = "%s%s" % (x_addon.getSetting('snap_loc'),snap_listing[counter])
listItem = xbmcgui.ListItem(named_listing[counter],"label2",thumbImage,thumbImage,path=launchpath)
I click on one of them and nothing happens.
Forgive me, I'm new to python coding.
launchpath = "os.startfile(%s %s%s)" % (x_addon.getSetting('binary_loc'),x_addon.getSetting('ROM_loc'),file_listing[counter])
thumbImage = "%s%s" % (x_addon.getSetting('snap_loc'),snap_listing[counter])
listItem = xbmcgui.ListItem(named_listing[counter],"label2",thumbImage,thumbImage,path=launchpath)
I click on one of them and nothing happens.
Forgive me, I'm new to python coding.