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

Diff of /trunk/pygtk/interface/gtkbrowser.py

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

revision 327 by johnpye, Thu Feb 23 14:14:36 2006 UTC revision 328 by johnpye, Fri Feb 24 06:05:10 2006 UTC
# Line 627  class Browser: Line 627  class Browser:
627          _v = checkmenuitem.get_active()          _v = checkmenuitem.get_active()
628          self.prefs.setBoolPref("SolverReporter","close_on_nonconverged",_v)          self.prefs.setBoolPref("SolverReporter","close_on_nonconverged",_v)
629    
630        def on_show_variables_near_bounds_activate(self,*args):
631            _epsilon = 1e-4;
632            _vars = self.sim.getVariablesNearBounds(_epsilon)
633            print "VARIABLES NEAR BOUNDS"
634            for _v in _vars:
635                print _v.getName();
636    
637  #   --------------------------------------------  #   --------------------------------------------
638  #   MODULE LIST  #   MODULE LIST
639    
# Line 885  class Browser: Line 892  class Browser:
892          if not self.sim:          if not self.sim:
893              self.reporter.reportError("No simulation created yet!");              self.reporter.reportError("No simulation created yet!");
894                    
895          _paramswin = SolverParametersWindow(self.sim, self.reporter, GLADE_FILE)          _paramswin = SolverParametersWindow(self, GLADE_FILE)
896          _paramswin.show()          _paramswin.show()
897    
898      def methodrun_click(self,*args):      def methodrun_click(self,*args):
# Line 922  class Browser: Line 929  class Browser:
929      def on_help_about_click(self,*args):      def on_help_about_click(self,*args):
930          _xml = gtk.glade.XML(GLADE_FILE,"aboutdialog")          _xml = gtk.glade.XML(GLADE_FILE,"aboutdialog")
931          _about = _xml.get_widget("aboutdialog")          _about = _xml.get_widget("aboutdialog")
932            _about.set_position(gtk.WIN_POS_CENTER_ON_PARENT)
933            _about.set_transient_for(self.window);
934          _about.set_version(VERSION)          _about.set_version(VERSION)
935          _about.run()          _about.run()
936          _about.destroy()          _about.destroy()

Legend:
Removed from v.327  
changed lines
  Added in v.328

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