]> git.sthu.org Git - pygdb.git/blob - ClientIOTerminal.py
remembering window sizes
[pygdb.git] / ClientIOTerminal.py
1 #!/usr/bin/python
2 #shuber, 2008-06-04
3
4 __author__ = "shuber"
5
6
7 import gtk
8 import pango
9 import vte
10
11
12 class ClientIOWindow (gtk.Window):
13
14
15 def __init__(self, parent, pty_master):
16
17 #Set up GTK stuff
18 gtk.Window.__init__(self)
19 self.set_screen(parent.get_screen())
20
21
22 #Set title and add terminal
23 self.set_title("Client I/O")
24 self.terminal = ClientIOTerminal(pty_master)
25 self.add(self.terminal)
26
27
28 #Show the window
29 self.show_all()
30
31
32
33 class ClientIOTerminal(vte.Terminal):
34
35 def __init__(self, pty_master):
36 vte.Terminal.__init__(self)
37 self.set_pty(pty_master)
38
39 fontdesc = pango.FontDescription("monospace 9")
40 self.set_font(fontdesc)
41
42