/[ascend]/trunk/pygtk/solverreporter.py
ViewVC logotype

Diff of /trunk/pygtk/solverreporter.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3180 by sreenatha, Tue Feb 26 01:56:46 2013 UTC revision 3181 by jpye, Tue Feb 7 05:11:24 2017 UTC
# Line 1  Line 1 
1  import ascpy  import ascpy
2  import time  import time
 import gtk  
 from diagnose import *  
3    
4  class PythonSolverReporter(ascpy.SolverReporter):  class PythonSolverReporter(ascpy.SolverReporter):
5      def __init__(self,browser,message=None):      def __init__(self,browser,message=None):
# Line 45  class PythonSolverReporter(ascpy.SolverR Line 43  class PythonSolverReporter(ascpy.SolverR
43    
44  class PopupSolverReporter(PythonSolverReporter):  class PopupSolverReporter(PythonSolverReporter):
45      def __init__(self,browser,sim):      def __init__(self,browser,sim):
46            import gtk
47            import diagnose
48    
49          PythonSolverReporter.__init__(self,browser)          PythonSolverReporter.__init__(self,browser)
50    
51    
# Line 91  class PopupSolverReporter(PythonSolverRe Line 92  class PopupSolverReporter(PythonSolverRe
92      def on_diagnose_button_click(self,*args):      def on_diagnose_button_click(self,*args):
93          try:          try:
94              _bl = self.sim.getActiveBlock()              _bl = self.sim.getActiveBlock()
95              _db = DiagnoseWindow(self.browser,_bl)              _db = diagnose.DiagnoseWindow(self.browser,_bl)
96              _db.run();              _db.run();
97          except RuntimeError, e:          except RuntimeError, e:
98              self.reporter.reportError(str(e))              self.reporter.reportError(str(e))
# Line 191  class PopupSolverReporter(PythonSolverRe Line 192  class PopupSolverReporter(PythonSolverRe
192    
193  class SimpleSolverReporter(PythonSolverReporter):  class SimpleSolverReporter(PythonSolverReporter):
194      def __init__(self,browser,message=None):      def __init__(self,browser,message=None):
195            import gtk
196          #print "CREATING SIMPLESOLVERREPORTER..."          #print "CREATING SIMPLESOLVERREPORTER..."
197          PythonSolverReporter.__init__(self,browser,message)          PythonSolverReporter.__init__(self,browser,message)
198          self.lasttime = self.starttime          self.lasttime = self.starttime

Legend:
Removed from v.3180  
changed lines
  Added in v.3181

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