Major change: Discovered the vte.Terminal class and moved to that one!
[pygdb.git] / ClientIOTerminal.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
20
21 #Set title and add terminal
22 self.set_title("Client I/O")
23 self.terminal = ClientIOTerminal(pty_master)
24 self.add(self.terminal)
25
26 #Show the window
27 self.show_all()
28
29
30
31 class ClientIOTerminal(vte.Terminal):
32
33 def __init__(self, pty_master):
34 vte.Terminal.__init__(self)
35 self.set_pty(pty_master)
36