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 |
|
|