Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import Tk, Frame, BOTH, YES
- import os, sys
- from multiprocessing import Process
- def GUI():
- sys.stdout = open(str(os.getpid()) + ".out", "w")
- root = Tk()
- root.resizable(False, False)
- termf = Frame(root, height=400, width=600)
- termf.pack(fill=BOTH, expand=YES)
- wid = termf.winfo_id()
- os.system('xterm -into %d -geometry 96x30 -sb -hold -e "tail -f loading.py" &' % wid)
- root.mainloop()
- process = Process(target=GUI)
- process.start()
- input("Enter command:")
- --------------
- zenix@linux-xk05:~/Desktop> python a.py
- Enter command:Traceback (most recent call last):
- File "a.py", line 18, in <module>
- input("Enter command:")
- EOFError
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement