
19/02/2011, 00:29
|
 | Moderador | | Fecha de Ingreso: marzo-2005 Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 11 meses Puntos: 1360 | |
Respuesta: Ver salida terminal -- PyGTK En ese caso necesitas subprocess:
Código Python:
Ver originalimport subprocess p = subprocess.Popen(["dir"], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = p.communicate() print stdout print stderr
|