

def _get_user_value(self):
    ' Gets the actual value corresponding to what the user typed.\n        '
    value = self.control.GetValue()
    try:
        value = self.evaluate(value)
    except:
        pass
    try:
        ret = self.factory.mapping.get(value, value)
    except TypeError:
        ret = value
    return ret

dataset/ETHPy150Open enthought/traitsui/traitsui/wx/text_editor.py SimpleEditor._get_user_value/original