/[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 802 by johnpye, Thu Jul 27 04:35:17 2006 UTC revision 803 by johnpye, Fri Aug 4 05:51:31 2006 UTC
# Line 5  def print_loading_status(status,msg=None Line 5  def print_loading_status(status,msg=None
5      sys.stderr.write("\r                                                 \r")      sys.stderr.write("\r                                                 \r")
6      if msg!=None:      if msg!=None:
7          sys.stderr.write(msg+"\n")          sys.stderr.write(msg+"\n")
8      sys.stderr.write(status+"...")      sys.stderr.write(status+"...\r")
9      sys.stderr.flush()      sys.stderr.flush()
10    
11  try:  try:
# Line 398  class Browser: Line 398  class Browser:
398              self.solver_engine_menu.append(_mi)              self.solver_engine_menu.append(_mi)
399              self.solver_engine_menu_dict[_s.getName()]=_mi                self.solver_engine_menu_dict[_s.getName()]=_mi  
400                    
401          _mi = self.solver_engine_menu_dict.get('QRSlv')          _pref_solver = self.prefs.getStringPref("Solver","engine","QRSlv")
402          _mi.set_active(1)          _mi = self.solver_engine_menu_dict.get(_pref_solver)
403            if _mi:
404                _mi.set_active(1)
405    
406          #--------          #--------
407          # Assign an icon to the main window          # Assign an icon to the main window
# Line 505  class Browser: Line 507  class Browser:
507    
508      def set_solver(self,solvername):      def set_solver(self,solvername):
509          self.solver = ascpy.Solver(solvername)          self.solver = ascpy.Solver(solvername)
510            self.prefs.setStringPref("Solver","engine",solvername)
511          self.reporter.reportNote("Set solver engine to '%s'" % solvername)          self.reporter.reportNote("Set solver engine to '%s'" % solvername)
512    
513  #   --------------------------------------------  #   --------------------------------------------

Legend:
Removed from v.802  
changed lines
  Added in v.803

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