Major change: Discovered the vte.Terminal class and moved to that one!
[pygdb.git] / ClientIOWindow.py
diff --git a/ClientIOWindow.py b/ClientIOWindow.py
new file mode 100755 (executable)
index 0000000..87f045e
--- /dev/null
@@ -0,0 +1,32 @@
+#!/usr/bin/python
+#shuber, 2008-06-04
+
+__author__ = "shuber"
+
+
+import gtk
+import vte
+
+
+class ClientIOWindow (gtk.Window):
+
+
+       def __init__(self, parent, pty_master):
+
+               #Set up GTK stuff
+               gtk.Window.__init__(self)
+               self.set_screen(parent.get_screen())
+               self.connect("destroy", lambda *w: gtk.main_quit())
+
+
+               #Set title and add terminal
+               self.set_title("Client I/O")
+               self.terminal = vte.Terminal()
+               self.add(self.terminal)
+
+               #Set the pty to client
+               self.terminal.set_pty(pty_master)
+
+               #Show the window
+               self.show_all()
+