added watches and status line
[pygdb.git] / MainControlWindow.py
index d82baaf760ebe069695b14c5b5833fb5cd7c2dd0..55bff28ce698ae6eb83329dccd63da2dd3f36690 100755 (executable)
@@ -132,15 +132,16 @@ class MainControlWindow (gtk.Window):
 
 if __name__ == "__main__":
 
-       def newpos(pos):
-               print "new pos: ", pos
+
+       import StatusWindow
 
 
        clientCmd = string.join(sys.argv[1:])
        dbgterm = GdbTerminal.GdbTerminal(clientCmd)
        mainCtrlWnd = MainControlWindow(dbgterm)
 
-       mainCtrlWnd.newPosCbs += [newpos]
+       statusWnd = StatusWindow.StatusWindow(mainCtrlWnd, dbgterm)
+       mainCtrlWnd.newPosCbs += [statusWnd.updateValues]
 
        gtk.main()