11 class ClientIOWindow (gtk
.Window
):
14 def __init__(self
, parent
, pty_master
):
17 gtk
.Window
.__init
__(self
)
18 self
.set_screen(parent
.get_screen())
19 self
.connect("destroy", lambda *w
: gtk
.main_quit())
22 #Set title and add terminal
23 self
.set_title("Client I/O")
24 self
.terminal
= vte
.Terminal()
25 self
.add(self
.terminal
)
27 #Set the pty to client
28 self
.terminal
.set_pty(pty_master
)