1

I have been trying to find any way to add command prompt in TKinter gui. So, please any one can help me.

`from Tkinter import *
import os

root = Tk()
cmd= Frame(root, width = 400, height = 200)

cmd.pack(fill=BOTH, expand=YES)
wid = cmd.winfo_id()
os.system('cmd -into %d -geometry 80x20 -sb -e python &' % wid)

root.mainloop()`
martineau
  • 119,623
  • 25
  • 170
  • 301
anuj rajak
  • 49
  • 6

0 Answers0