How can the size of the tk embedded xterm be dynamic?
问题 One can write a simple python script to embed an xterm into a tk frame: from Tkinter import * import subprocess root = Tk() termf = Frame(root, height=800, width=1000) termf.pack(fill=BOTH, expand=YES) wid = termf.winfo_id() After the window is established proc = subprocess.Popen('xterm -into %d -sb ' % wid,shell=True) root.mainloop() On my computer it looks like How can I make the embedded xterm be dynamically sized to the size of the termf frame even when resizing the frame(by dragging the