Hello,
How can I get help on how to use enigma2 calls? for example I have made a plugin that has a list, and I want my code to return the filename the cursor is standing on so that I can use it in an os.system call. I tried to use self.getSelection but it is causing my box to crash :P, here is the piece of code I have (based on FileManger plugin):
Code
def ok(self):
selection = self["list"].getSelection()
if selection[1] == True:
self["list"].changeDir(selection[0])
else:
if isinstance(selection, eServiceReference):
selection = selection.getPath()
cmd = "/usr/bin/ctorrent -E 0 " + selection
res = os.system(cmd)
return (res >> 8)
Thanks in advanced.