X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=MainControlWindow.py;h=c8706d9b0368717d579f457c0a4e511cf31cd48b;hb=d7a00b7d9d8b49655f714abc53361bed08e0355d;hp=13d32eed6667f784c079b5a6ff89bae6d5e2187d;hpb=f2698c930f26434a100e0b4c1e4f39291b55b4f9;p=pygdb.git diff --git a/MainControlWindow.py b/MainControlWindow.py index 13d32ee..c8706d9 100644 --- a/MainControlWindow.py +++ b/MainControlWindow.py @@ -10,7 +10,7 @@ import sys import vte -import GdbTerminal +import DbgTerminal import ClientIOTerminal @@ -20,7 +20,7 @@ class MainControlWindow (gtk.Window): #Set up GTK stuff gtk.Window.__init__(self) - self.connect("destroy", lambda *w: gtk.main_quit() ) + self.connect("destroy", DbgTerminal.quitHandler ) #Callbacks for new positions self.newPosCbs = [] @@ -39,8 +39,8 @@ class MainControlWindow (gtk.Window): self.add(vbox) #Button box - hbtnbox = gtk.HButtonBox() - hbtnbox.set_layout(gtk.BUTTONBOX_START) + hbtnbox = gtk.HBox(False, spacing=5) + #hbtnbox.set_layout(gtk.BUTTONBOX_START) vbox.pack_start(hbtnbox) self.runBtn = gtk.Button("Run") @@ -63,8 +63,10 @@ class MainControlWindow (gtk.Window): #Install handlers self.runBtnHandler = self.runBtn.connect('clicked', self.runBtnClicked) - self.continueBtnHandler = self.continueBtn.connect('clicked', self.continueBtnClicked) - self.stepoverBtnHandler = self.stepoverBtn.connect('clicked', self.stepoverBtnClicked) + self.continueBtnHandler = self.continueBtn.connect('clicked', \ + self.continueBtnClicked) + self.stepoverBtnHandler = self.stepoverBtn.connect('clicked', \ + self.stepoverBtnClicked) self.stepinBtnHandler = self.stepinBtn.connect('clicked', self.stepinBtnClicked) self.quitBtnHandler = self.quitBtn.connect('clicked', self.quitBtnClicked)