/[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 207 by johnpye, Mon Jan 23 06:47:06 2006 UTC revision 208 by johnpye, Tue Jan 24 03:19:37 2006 UTC
# Line 61  class Browser: Line 61  class Browser:
61          glade = gtk.glade.XML(GLADE_FILE,"browserwin")          glade = gtk.glade.XML(GLADE_FILE,"browserwin")
62    
63          self.window = glade.get_widget("browserwin")          self.window = glade.get_widget("browserwin")
64    
65          if not self.window:          if not self.window:
66              raise RuntimeError("Couldn't load window from glade file")              raise RuntimeError("Couldn't load window from glade file")
67    
# Line 101  class Browser: Line 102  class Browser:
102    
103          self.statusbar = glade.get_widget("statusbar")          self.statusbar = glade.get_widget("statusbar")
104    
105            self.menu = glade.get_widget("browsermenu")
106            glade.signal_autoconnect(self)
107    
108          #-------------------          #-------------------
109          # waitwin          # waitwin
110    
# Line 715  class Browser: Line 719  class Browser:
719          self.do_check()          self.do_check()
720          #self.reporter.reportError("CHECK clicked")          #self.reporter.reportError("CHECK clicked")
721    
722        def preferences_click(self,*args):
723            if not self.sim:
724                self.reporter.reportError("No simulation created yet!");
725            
726            _params = self.sim.getSolverParameters();
727            print _params.toString();
728            self.reporter.reportSuccess("Check console for solver parameter output")
729    
730      def methodrun_click(self,*args):      def methodrun_click(self,*args):
731          _sel = self.methodsel.get_active_text()          _sel = self.methodsel.get_active_text()
732          if _sel:          if _sel:

Legend:
Removed from v.207  
changed lines
  Added in v.208

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