12 import MainControlWindow
16 def launchDebugger(clientCmd
, quitonclose
=True):
30 #Determine the closing callback func
32 destroycb
= gtk
.main_quit
34 destroycb
= hideWindows
37 dbgterm
= GdbTerminal
.GdbTerminal(clientCmd
, destroycb
)
40 mainCtrlWnd
= MainControlWindow
.MainControlWindow(dbgterm
, destroycb
)
41 statusWnd
= StatusWindow
.StatusWindow(mainCtrlWnd
, dbgterm
, destroycb
)
44 return dbgterm
, mainCtrlWnd
, statusWnd
48 if __name__
== "__main__":
50 #Check if enough arguments are given
51 if len(sys
.argv
) <= 1:
52 print "Please give executeable to debug."
56 clientCmd
= string
.join(sys
.argv
[1:])
57 launchDebugger(clientCmd
)