So i'm working with python and tkinter and i'm trying to embed a console into a GUI and I've tried to find the solution on other pages and across other website but I still cant find the answer. (code from How to embed a terminal in a Tkinter application?)
Here is the code that I am working with:
from tkinter import *
import os
root = Tk()
termf = Frame(root, height=400, width=500)
termf.pack(fill=BOTH, expand=YES)
wid = termf.winfo_id()
os.system('xterm -into %d -geometry 40x20 -sb &' % wid)
root.mainloop()
And here is the error i'm getting in console:
Process started >>>
'xterm' is not recognized as an internal or external command,
operable program or batch file.
<<< Process finished. (Exit code 0)
I'm assuming that xterm is short for x terminal or something but please correct me if i'm wrong.
Also sorry if the format of the console is a little different as I am using a console plugin in Notepad ++ but from my understanding it should look exactly like it does in the Python IDLE.
(As an afterthought I think I should add that a window opens but its blank and it gives me the error in console.)