I have a script that I want to run from os.system but it's working fine in Linux but it's not working in Windows as it is not recognizing 'xterm'.
I want to display the output in both terminal and in GUI. If I remove 'xterm' it will work on both Linux and Windows but output will display in terminal not in GUI. Is there any alternative of 'xterm' for windows?? I want to execute this command in Windows.
from tkinter import *
import os
root = Tk()
root.title("WIndows")
termf = Frame(root, height=1000, width=1000)
termf.pack(fill=BOTH, expand=YES)
wid = termf.winfo_id()
os.system('xterm -into %d -geometry 1000x1000 -e python3 test.py &' % wid )
root.mainloop()
Above Code is working fine in Linux but not in windows because of 'xterm'