/[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 1386 by jpye, Fri Apr 6 06:54:51 2007 UTC revision 1387 by jpye, Sat Apr 7 14:43:31 2007 UTC
# Line 258  class Browser: Line 258  class Browser:
258          if _geom2:          if _geom2:
259              self.browserpaned.set_position(_geom2)              self.browserpaned.set_position(_geom2)
260    
261          self.openbutton=glade.get_widget("openbutton")          buttons = ["open","reload","solve","integrate","check","methodrun"]
262          self.openbutton.connect("clicked",self.open_click)          for n in buttons:
263                name = "%sbutton"%n
264                setattr(self,name,glade.get_widget(name))
265                getattr(self,name).connect("clicked",getattr(self,"%s_click"%n))
266    
267            widgets = ["autotoggle","automenu","methodsel","maintabs","lowertabs","consolescroll","statusbar","browsermenu"]
268            for n in widgets:
269                setattr(self,n,glade.get_widget(n))
270    
         self.reloadbutton=glade.get_widget("reloadbutton")  
         self.reloadbutton.connect("clicked",self.reload_click)  
           
         self.solvebutton=glade.get_widget("solvebutton")  
         self.solvebutton.connect("clicked",self.solve_click)  
   
         self.integratebutton=glade.get_widget("integratebutton")  
         self.integratebutton.connect("clicked",self.integrate_click)  
   
         self.checkbutton=glade.get_widget("checkbutton")  
         self.checkbutton.connect("clicked",self.check_click)  
   
         self.autotoggle=glade.get_widget("autotoggle")  
         self.automenu = glade.get_widget("automenu")  
271          self.autotoggle.connect("toggled",self.auto_toggle)          self.autotoggle.connect("toggled",self.auto_toggle)
272    
         self.methodrunbutton=glade.get_widget("methodrunbutton")  
         self.methodrunbutton.connect("clicked",self.methodrun_click)  
   
         self.methodsel=glade.get_widget("methodsel")  
   
         self.maintabs = glade.get_widget("maintabs")  
         self.lowertabs = glade.get_widget("lowertabs")  
         self.consolescroll = glade.get_widget("consolescroll")  
   
         self.statusbar = glade.get_widget("statusbar")  
   
         self.menu = glade.get_widget("browsermenu")  
   
273          self.show_solving_popup=glade.get_widget("show_solving_popup")          self.show_solving_popup=glade.get_widget("show_solving_popup")
274          self.show_solving_popup.set_active(self.prefs.getBoolPref("SolverReporter","show_popup",True))          self.show_solving_popup.set_active(self.prefs.getBoolPref("SolverReporter","show_popup",True))
275          self.close_on_converged=glade.get_widget("close_on_converged")          self.close_on_converged=glade.get_widget("close_on_converged")

Legend:
Removed from v.1386  
changed lines
  Added in v.1387

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