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
  • 112,593
  • 23
  • 157
  • 280
anuj rajak
  • 41
  • 6

0 Answers0