2010-07-26, 01:09
I tried something like this:
Obviously that didnt work. I want the running program to terminate when I hit cancel, can anyone help?
Code:
pDialog = xbmcgui.DialogProgress()
pDialog.create('XBMC', 'Press Cancel to Exit')
Progmain = subprocess.Popen(<Program & Parameters>)
Progmain.wait()
if (pDialog.iscanceled()):
os.kill(Progmain)
Obviously that didnt work. I want the running program to terminate when I hit cancel, can anyone help?