Merged Rolf Schmidt's illysam branch
[hooke.git] / hooke / ui / gui / plotmanipulator.py
1 #!/usr/bin/env python\r
2 \r
3 '''\r
4 plotmanipulator.py\r
5 \r
6 Plotmanipulator class for Hooke.\r
7 \r
8 Copyright 2010 by Dr. Rolf Schmidt (Concordia University, Canada)\r
9 \r
10 This program is released under the GNU General Public License version 2.\r
11 '''\r
12 \r
13 from string import replace\r
14 \r
15 class Plotmanipulator(object):\r
16     def __init__(self, command=None, method=None):\r
17         #the command (e.g. plotmanip_correct)\r
18         self.command = command\r
19         #the method associated with the command\r
20         self.method = method\r
21         #the suffix of the command (e.g. correct) to retrieve\r
22         #status (active or not from config)\r
23         self.name = command.replace('plotmanip_', '')\r
24 \r
25 \r