/[ascend]/trunk/pygtk/gtkbrowser.py
ViewVC logotype

Diff of /trunk/pygtk/gtkbrowser.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1116 by johnpye, Mon Jan 8 11:25:33 2007 UTC revision 1117 by johnpye, Thu Jan 11 10:57:24 2007 UTC
# Line 1139  class Browser: Line 1139  class Browser:
1139          _dialog.run()          _dialog.run()
1140    
1141      def on_show_fixable_variables_activate(self,*args):      def on_show_fixable_variables_activate(self,*args):
1142          v = self.sim.getFixableVariables()          try:
1143                v = self.sim.getFixableVariables()
1144            except RuntimeError,e:
1145                self.reporter.reportError(str(e))
1146          text = "Fixable Variables"          text = "Fixable Variables"
1147          title = text          title = text
1148          text += "\n"          text += "\n"
# Line 1151  class Browser: Line 1154  class Browser:
1154          _dialog = InfoDialog(self,self.window,text,title)          _dialog = InfoDialog(self,self.window,text,title)
1155          _dialog.run()          _dialog.run()
1156    
1157        def on_show_fixed_vars_activate(self,*args):
1158            try:
1159                v = self.sim.getFixedVariables()
1160            except RuntimeError,e:
1161                self.reporter.reportError(str(e))
1162            text = "Fixed Variables"
1163            title = text
1164            text += "\n"
1165            if len(v):
1166                for var in v:
1167                    text += "\n%s"%var
1168            else:
1169                text += "\nnone"
1170            _dialog = InfoDialog(self,self.window,text,title)
1171            _dialog.run()
1172    
1173    
1174      def on_show_freeable_variables_activate(self,*args):      def on_show_freeable_variables_activate(self,*args):
1175          v = self.sim.getFreeableVariables()          try:
1176                v = self.sim.getFreeableVariables()
1177            except RuntimeError,e:
1178                self.reporter.reportError(str(e))
1179    
1180          text = "Freeable Variables"          text = "Freeable Variables"
1181          title = text          title = text

Legend:
Removed from v.1116  
changed lines
  Added in v.1117

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22