equal
deleted
inserted
replaced
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 |
24 |
25 |
25 |
26 from __future__ import absolute_import |
26 from __future__ import absolute_import |
27 from __future__ import division |
27 from __future__ import division |
28 from types import TupleType |
|
29 import numpy |
28 import numpy |
30 |
29 |
31 import wx |
30 import wx |
32 import wx.lib.buttons |
31 import wx.lib.buttons |
33 |
32 |
122 message = None |
121 message = None |
123 |
122 |
124 # Check that data is valid regarding DebugVariablePanel |
123 # Check that data is valid regarding DebugVariablePanel |
125 try: |
124 try: |
126 values = eval(data) |
125 values = eval(data) |
127 if not isinstance(values, TupleType): |
126 if not isinstance(values, tuple): |
128 raise ValueError |
127 raise ValueError |
129 except Exception: |
128 except Exception: |
130 message = _("Invalid value \"%s\" for debug variable") % data |
129 message = _("Invalid value \"%s\" for debug variable") % data |
131 values = None |
130 values = None |
132 |
131 |