projects
/
pygdb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing bug, when getting text from terminal: started at line -1
[pygdb.git]
/
MainControlWindow.py
diff --git
a/MainControlWindow.py
b/MainControlWindow.py
index 4866134766793687c48d1df1fcc6483c88990d01..5ea0fb8f4cb38e7f77081a52159d614fff2ace32 100644
(file)
--- a/
MainControlWindow.py
+++ b/
MainControlWindow.py
@@
-10,21
+10,20
@@
import sys
import vte
import vte
-import
Gdb
Terminal
+import
Dbg
Terminal
import ClientIOTerminal
class MainControlWindow (gtk.Window):
import ClientIOTerminal
class MainControlWindow (gtk.Window):
- #Callbacks for new positions
- newPosCbs = []
-
- def __init__(self, dbgterm, quitonclose=True):
+ def __init__(self, dbgterm):
#Set up GTK stuff
gtk.Window.__init__(self)
#Set up GTK stuff
gtk.Window.__init__(self)
- if quitonclose:
- self.connect("destroy", lambda *w: gtk.main_quit() )
+ self.connect("destroy", DbgTerminal.quitHandler )
+
+ #Callbacks for new positions
+ self.newPosCbs = []
#Set terminals
self.dbgterm = dbgterm
#Set terminals
self.dbgterm = dbgterm
@@
-40,8
+39,8
@@
class MainControlWindow (gtk.Window):
self.add(vbox)
#Button box
self.add(vbox)
#Button box
- hbtnbox = gtk.HB
uttonBox(
)
- hbtnbox.set_layout(gtk.BUTTONBOX_START)
+ hbtnbox = gtk.HB
ox(False, spacing=5
)
+
#
hbtnbox.set_layout(gtk.BUTTONBOX_START)
vbox.pack_start(hbtnbox)
self.runBtn = gtk.Button("Run")
vbox.pack_start(hbtnbox)
self.runBtn = gtk.Button("Run")