Added illysam branch
[hooke.git] / plugins / results.py
1 #!/usr/bin/env python
2
3 '''
4 results.py
5
6 Results commands for Hooke.
7
8 Copyright 2010 by Dr. Rolf Schmidt (Concordia University, Canada)
9
10 This program is released under the GNU General Public License version 2.
11 '''
12
13 class resultsCommands(object):
14     '''
15     Results commands to show a certain type of results and to clear results
16     '''
17
18     def _plug_init(self):
19         pass
20     
21     def do_clear_results(self):
22         plot = self.GetActivePlot()
23         if plot is not None:
24             plot.results.clear()
25         self.UpdatePlot()
26
27
28     def do_show_results(self):
29         self.UpdatePlot()