Major change: Discovered the vte.Terminal class and moved to that one!
[pygdb.git] / ClientIOWindow.py
1 #!/usr/bin/python
2 #shuber, 2008-06-04
3
4 __author__ = "shuber"
5
6
7 import gtk
8 import vte
9
10
11 class ClientIOWindow (gtk.Window):
12
13
14 def __init__(self, parent, pty_master):
15
16 #Set up GTK stuff
17 gtk.Window.__init__(self)
18 self.set_screen(parent.get_screen())
19 self.connect("destroy", lambda *w: gtk.main_quit())
20
21
22 #Set title and add terminal
23 self.set_title("Client I/O")
24 self.terminal = vte.Terminal()
25 self.add(self.terminal)
26
27 #Set the pty to client
28 self.terminal.set_pty(pty_master)
29
30 #Show the window
31 self.show_all()
32