X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=blobdiff_plain;f=StatusWindow.py;h=3d77dea2d21b939efcf72968e87bd0a184183182;hp=3209fed5b94e69141518965cfc87363c7dc938e1;hb=b7f4eaf787ec9c54f36cce00bb294a8be2a862c3;hpb=e8f5eba24b3fd5cdd839bcfc170a2e3aa16dd05d diff --git a/StatusWindow.py b/StatusWindow.py index 3209fed..3d77dea 100644 --- a/StatusWindow.py +++ b/StatusWindow.py @@ -10,6 +10,7 @@ import string import os import vte +import Configuration import DbgTerminal import BreakpointsFrame import PositionFrame @@ -23,6 +24,7 @@ class StatusWindow (gtk.Window): gtk.Window.__init__(self) self.debugger = debugger + self.debugger.gotActiveCallback += [self.updateValues] self.set_border_width(5) self.set_title("Status") @@ -41,6 +43,8 @@ class StatusWindow (gtk.Window): WatchesFrame.WatchesFrame(debugger), \ BreakpointsFrame.BreakpointsFrame(debugger) ] + #Register callback after frames! + self.debugger.gotActiveCallback += [self.updateValues] #First paned window self.paned1 = gtk.VPaned() @@ -88,3 +92,10 @@ class StatusWindow (gtk.Window): for f in self.frames: f.fillConfiguration(conf) + + def updateValues(self, status, param): + + conf = Configuration.Configuration() + self.fillConfiguration(conf) + conf.store(".pygdb.conf") +