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

Diff of /trunk/pygtk/modelview.py

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

revision 533 by johnpye, Mon Apr 24 05:54:11 2006 UTC revision 559 by johnpye, Wed May 3 02:40:23 2006 UTC
# Line 326  class ModelView: Line 326  class ModelView:
326          return 1          return 1
327    
328      def plot_activate(self,widget):      def plot_activate(self,widget):
329          self.reporter.reportNote("plot_activate...");      
330            self.browser.reporter.reportNote("plot_activate...");
331          _path,_col = self.modelview.get_cursor()          _path,_col = self.modelview.get_cursor()
332          _instance = self.otank[_path][1]          _instance = self.otank[_path][1]
333          if not _instance.isPlottable():          if not _instance.isPlottable():
334              self.reporter.reportError("Can't plot instance %s" % _instance.getName().toString())              self.browser.reporter.reportError("Can't plot instance %s" % _instance.getName().toString())
335              return              return
336          else:          else:
337              self.reporter.reportNote("Instance %s about to be plotted..." % _instance.getName().toString())              self.browser.reporter.reportNote("Instance %s about to be plotted..." % _instance.getName().toString())
338    
339          print("Plotting instance '%s'..." % _instance.getName().toString())          print("Plotting instance '%s'..." % _instance.getName().toString())
340    

Legend:
Removed from v.533  
changed lines
  Added in v.559

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