121c0b8a7f5b9375e2b6614ffa90abf3ad427d1e
10 import BreakpointsFrame
15 class StatusWindow (gtk
.Window
):
17 def __init__(self
, mainctrlwnd
, debugger
):
19 gtk
.Window
.__init
__(self
)
20 self
.debugger
= debugger
22 self
.set_border_width(5)
23 self
.set_title("Status")
24 self
.set_default_size(400,600)
25 self
.connect("destroy", lambda *w
: gtk
.main_quit())
27 vbox
= gtk
.VBox(False, 5)
30 self
.status
= gtk
.Label("Not Running")
31 vbox
.pack_start(self
.status
, False, False)
37 self
.frames
+= [WatchesFrame
.WatchesFrame(debugger
)]
38 self
.frames
+= [BreakpointsFrame
.BreakpointsFrame(debugger
)]
39 vpaned
.add1(self
.frames
[0])
40 vpaned
.add2(self
.frames
[1])
42 #Register callback function for new positions
43 #and update the values
44 mainctrlwnd
.newPosCbs
+= [self
.updateValues
]
49 def applyConfiguration(self
, conf
):
51 while not self
.debugger
.isActive():
55 f
.applyConfiguration(conf
)
58 def fillConfiguration(self
, conf
):
60 f
.fillConfiguration(conf
)
63 def updateValues(self
, pos
):
66 self
.status
.set_text("Exited")
69 self
.status
.set_text("%s:%s" % (file, lineno
))