#!usr/bin/python
#Console (C) Doddy Hackman 2011
from Tkinter import *
import subprocess
global x
def execa() :
re = subprocess.Popen(cmd.get(),shell=True,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
if re:
panel.insert(END,re.stdout.read())
else:
panel.insert(END,re.stderr.read())
window = Tk()
window.title("Console (C) Doddy Hackman 2011")
window.maxsize(width="400",height="320")
window.minsize(width="400",height="320")
window.configure(background="black")
window.configure(cursor="tcross")
cmd = StringVar()
panel = Text(window,width=30,height=15,bg="black",fg="green")
Label(window,bg="black").grid(row=1)
Label(window,text="Command : ",bg="black",fg="green").grid(row=3,column=4)
entry = Entry(window,width=35,textvariable=cmd,bg="black",fg="green").grid(row=3,column=5)
Button(text="Cargar",bg="black",fg="green",activebackground="green",command=execa).grid(row=3,column=9)
Label(window,bg="black").grid(row=4)
panel.grid(row=10,column=5)
window.mainloop()
Bueno este es un simple ejecutor de comandos hecho en tk