, subprocess.Popen. (stdout = subprocess.PIPE)
( )
, , GUI filedescriptor .
, , ( ), , .
proc = sucprocess.Popen(command,stdout=subprocess.PIPE)
for line in proc.stdout.readlines():
Edit:
, -, , , , stdout, stderr.
stdout stderr .
growisofs [options] >stdout 2>stderr
, stdout stderr.
stderr, stdout=subprocess.PIPE stderr=subprocess.PIPE , .
Edit2:
- - .
:
gtk.gdk.threads_init()
threading.Thread.__init__(self)
- - , gtk?
, run(), :
core.Burning.run(self.burning, self.filechooser.get_filename(), self.listofdevices[self.combobox.get_active()])
:
self.burning.run(self.filechooser.get_filename(), self.listofdevices[self.combobox.get_active()])
( __init__())
, , . , growisofs , gtk + background threading code, .
- , .
. , python, , ..