Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/02/2011, 00:29
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: Ver salida terminal -- PyGTK

En ese caso necesitas subprocess:
Código Python:
Ver original
  1. import subprocess
  2. p = subprocess.Popen(["dir"], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  3. stdout, stderr = p.communicate()
  4. print stdout
  5. print stderr