new feature: selecting on breakpoint sets entry-ctrl-text
[pygdb.git] / MainControlWindow.py
old mode 100755 (executable)
new mode 100644 (file)
index 42f8285..d8235c0
@@ -16,14 +16,14 @@ import ClientIOTerminal
 
 class MainControlWindow (gtk.Window):
 
-       #Callbacks for new positions
-       newPosCbs = []
-
        def __init__(self, dbgterm):
 
                #Set up GTK stuff
                gtk.Window.__init__(self)
-               self.connect("destroy", lambda *w: gtk.main_quit())
+               self.connect("destroy", lambda *w: gtk.main_quit() )
+
+               #Callbacks for new positions
+               self.newPosCbs = []
 
                #Set terminals
                self.dbgterm = dbgterm
@@ -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")
@@ -120,21 +120,3 @@ class MainControlWindow (gtk.Window):
                        cb(pos)
 
 
-
-
-if __name__ == "__main__":
-
-
-       import StatusWindow
-
-
-       clientCmd = string.join(sys.argv[1:])
-       dbgterm = GdbTerminal.GdbTerminal(clientCmd)
-       mainCtrlWnd = MainControlWindow(dbgterm)
-
-       statusWnd = StatusWindow.StatusWindow(mainCtrlWnd, dbgterm)
-       mainCtrlWnd.newPosCbs += [statusWnd.updateValues]
-
-       gtk.main()
-
-