from . import Panel
from ....plugin import argument_to_setting
-from ....util.convert import ANALOGS
+from ....util.convert import ANALOGS, to_string, from_string
def props_from_argument(argument, curves=None, playlists=None):
def string_for_value(self, value):
"""Return a string representation of `value` for loading the table.
"""
- return str(value)
+ return to_string(value, 'string')
def value_for_string(self, string):
"""Return the value represented by `string`.
"""
- return string
+ return from_string(string, 'string')
class StringProperty (Property):
return wx.grid.GridCellNumberRenderer()
def value_for_string(self, string):
- return int(string)
+ return from_string(string, 'int')
class FloatProperty (Property):
return wx.grid.GridCellFloatRenderer()
def value_for_string(self, string):
- return float(string)
+ return from_string(string, 'float')
class ChoiceProperty (Property):