X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=blobdiff_plain;f=ClientIOTerminal.py;fp=ClientIOWindow.py;h=6cb17539dfe3c9faafee3c113d073a88b736deb5;hp=87f045ee9845eb3ace7987560c3bca8a816892f2;hb=5c48ca6a99597f2a2bfa1f9718eabb6e3f8678fa;hpb=7108ee075bddb8425305ed93bc1992ca8fe0c6cb diff --git a/ClientIOWindow.py b/ClientIOTerminal.py similarity index 68% rename from ClientIOWindow.py rename to ClientIOTerminal.py index 87f045e..6cb1753 100755 --- a/ClientIOWindow.py +++ b/ClientIOTerminal.py @@ -16,17 +16,21 @@ class ClientIOWindow (gtk.Window): #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.terminal = ClientIOTerminal(pty_master) self.add(self.terminal) - #Set the pty to client - self.terminal.set_pty(pty_master) - #Show the window self.show_all() + + +class ClientIOTerminal(vte.Terminal): + + def __init__(self, pty_master): + vte.Terminal.__init__(self) + self.set_pty(pty_master) +