equal
deleted
inserted
replaced
21 # |
21 # |
22 # You should have received a copy of the GNU General Public License |
22 # You should have received a copy of the GNU General Public License |
23 # along with this program; if not, write to the Free Software |
23 # along with this program; if not, write to the Free Software |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
25 |
25 |
26 from __future__ import absolute_import |
26 |
27 import wx |
27 import wx |
28 |
28 |
29 from graphics.GraphicCommons import SELECTION_DIVERGENCE, \ |
29 from graphics.GraphicCommons import SELECTION_DIVERGENCE, \ |
30 SELECTION_CONVERGENCE, SIMULTANEOUS_DIVERGENCE, SIMULTANEOUS_CONVERGENCE |
30 SELECTION_CONVERGENCE, SIMULTANEOUS_DIVERGENCE, SIMULTANEOUS_CONVERGENCE |
31 from graphics.SFC_Objects import SFC_Divergence |
31 from graphics.SFC_Objects import SFC_Divergence |
124 Return type selected for SFC divergence |
124 Return type selected for SFC divergence |
125 @return: Type selected (None if not found) |
125 @return: Type selected (None if not found) |
126 """ |
126 """ |
127 # Go through radio buttons and return type associated to the one that |
127 # Go through radio buttons and return type associated to the one that |
128 # is selected |
128 # is selected |
129 for type, control in self.TypeRadioButtons.iteritems(): |
129 for type, control in self.TypeRadioButtons.items(): |
130 if control.GetValue(): |
130 if control.GetValue(): |
131 return type |
131 return type |
132 return None |
132 return None |
133 |
133 |
134 def GetValues(self): |
134 def GetValues(self): |