como eu crio o gnome-terminal a partir do código python?

1

Eu uso o ubuntu 14.04 e quero criar o gnome-terminal a partir do script python. Eu usei o seguinte código.

o código:

!/usr/bin/python

from subprocess import Popen,PIPE 
import os 
import time

os.system('gnome-terminal') 
time.sleep(5)
print "this works"

mas quando eu executo este código, o sistema mostra o seguinte erro e o sistema não lê outra linha (print "this works")

(gnome-terminal:2179): GLib-GIO-CRITICAL **: g_settings_get: the format string may not contain '&' (key 'monospace-font-name' from schema 'org.gnome.desktop.interface'). This call will probably stop working with a future version of glib.

Como resolvo este problema?

obrigado pelo avanço

    
por AKmin 07.08.2015 / 22:26

0 respostas