projects
/
pygdb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new exciting GTK Main Control Window
[pygdb.git]
/
ClientIOTerminal.py
diff --git
a/ClientIOWindow.py
b/ClientIOTerminal.py
similarity index 68%
rename from
ClientIOWindow.py
rename to
ClientIOTerminal.py
index 87f045ee9845eb3ace7987560c3bca8a816892f2..6cb17539dfe3c9faafee3c113d073a88b736deb5 100755
(executable)
--- 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())
#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")
#Set title and add terminal
self.set_title("Client I/O")
- self.terminal =
vte.Terminal(
)
+ self.terminal =
ClientIOTerminal(pty_master
)
self.add(self.terminal)
self.add(self.terminal)
- #Set the pty to client
- self.terminal.set_pty(pty_master)
-
#Show the window
self.show_all()
#Show the window
self.show_all()
+
+
+class ClientIOTerminal(vte.Terminal):
+
+ def __init__(self, pty_master):
+ vte.Terminal.__init__(self)
+ self.set_pty(pty_master)
+