/[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 1005 by johnpye, Mon Jan 1 23:35:40 2007 UTC revision 1006 by johnpye, Tue Jan 2 11:13:34 2007 UTC
# Line 728  class Browser: Line 728  class Browser:
728              status = self.sim.checkDoF()              status = self.sim.checkDoF()
729              if status==ascpy.ASCXX_DOF_UNDERSPECIFIED:              if status==ascpy.ASCXX_DOF_UNDERSPECIFIED:
730                  self.on_show_fixable_variables_activate(None)                  self.on_show_fixable_variables_activate(None)
                 return  
731              elif status==ascpy.ASCXX_DOF_OVERSPECIFIED:              elif status==ascpy.ASCXX_DOF_OVERSPECIFIED:
732                  self.on_show_freeable_variables_activate(None)                  self.on_show_freeable_variables_activate(None)
                 return  
733              elif status==ascpy.ASCXX_DOF_STRUCT_SINGULAR:              elif status==ascpy.ASCXX_DOF_STRUCT_SINGULAR:
734                  if not self.sim.checkStructuralSingularity():                  if not self.sim.checkStructuralSingularity():
735                      sing = self.sim.getSingularityInfo()                      sing = self.sim.getSingularityInfo()
# Line 754  class Browser: Line 752  class Browser:
752    
753                      _dialog = InfoDialog(self,self.window,text,title)                      _dialog = InfoDialog(self,self.window,text,title)
754                      _dialog.run()                      _dialog.run()
755                  return              else:
756                    self.reporter.reportNote("System DoF check OK")
             self.reporter.reportNote("System DoF check OK")  
757    
758          except RuntimeError, e:          except RuntimeError, e:
759              self.stop_waiting()              self.stop_waiting()
# Line 764  class Browser: Line 761  class Browser:
761              return              return
762    
763          self.stop_waiting()          self.stop_waiting()
   
764          self.modelview.refreshtree()          self.modelview.refreshtree()
765    
766      def do_method(self,method):      def do_method(self,method):
# Line 796  class Browser: Line 792  class Browser:
792          # causes prefs to be saved unless they are still being used elsewher          # causes prefs to be saved unless they are still being used elsewher
793          del(self.prefs)          del(self.prefs)
794    
795            print_loading_status("Clearing error callback")    
796            self.reporter.clearPythonErrorCallback()
797    
798          print_loading_status("Closing down GTK")          print_loading_status("Closing down GTK")
799          gtk.main_quit()          gtk.main_quit()
800    
801          print_loading_status("Clearing error callback")              print_loading_status("Clearing library")            
802          self.reporter.clearPythonErrorCallback()          self.library.clear()
803                    
804          print_loading_status("Quitting")          print_loading_status("Quitting")
805    
806          return False          return False
807    
808      def on_tools_sparsity_click(self,*args):      def on_tools_sparsity_click(self,*args):

Legend:
Removed from v.1005  
changed lines
  Added in v.1006

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