/[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 234 by johnpye, Sun Jan 29 17:15:47 2006 UTC revision 235 by johnpye, Mon Jan 30 01:48:01 2006 UTC
# Line 27  import ascend Line 27  import ascend
27    
28  GLADE_FILE = "/home/john/src/ascend/trunk/pygtk/interface/ascend.glade"  GLADE_FILE = "/home/john/src/ascend/trunk/pygtk/interface/ascend.glade"
29    
 CHANGED_COLOR = "#FFFF88"  
 SOLVERPARAM_BOOL_TRUE = "Yes"  
 SOLVERPARAM_BOOL_FALSE = "No"  
   
30  ESCAPE_KEY = 65307  ESCAPE_KEY = 65307
31    
32  HELP_ROOT = None  HELP_ROOT = None
# Line 462  class Browser: Line 458  class Browser:
458          _im = self.sim.getIncidenceMatrix();          _im = self.sim.getIncidenceMatrix();
459          _id = _im.getIncidenceData();          _id = _im.getIncidenceData();
460                    
461          data = pylab.zeros((_im.getNumCols(), _im.getNumRows()))*0.          data = pylab.zeros((_im.getNumRows(), _im.getNumCols(), ))*0.
462          for i in _id:          for i in _id:
463              data[i.col, i.row] = int(i.type)              data[i.row, i.col] = int(i.type)
464    
465          pylab.spy2(data)          pylab.spy2(data)
466          pylab.ion()          pylab.ion()
# Line 780  class Browser: Line 776  class Browser:
776          if not self.sim:          if not self.sim:
777              self.reporter.reportError("No simulation created yet!");              self.reporter.reportError("No simulation created yet!");
778                    
779          _paramswin = SolverParametersWindow(self.sim, self.reporter)          _paramswin = SolverParametersWindow(self.sim, self.reporter, GLADE_FILE)
780          _paramswin.show()          _paramswin.show()
781    
782      def methodrun_click(self,*args):      def methodrun_click(self,*args):

Legend:
Removed from v.234  
changed lines
  Added in v.235

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