def validValue(self, value): if type(value) is StringType: try: fn = strfunction.XYStrFunction(value) return True except: return False return isinstance(value, strfunction.XYStrFunction)
def get_value(self): debug.mainthreadTest() return strfunction.XYStrFunction(self.gtk.get_text().lstrip())
def _vecfuncparam(component, components): return strfunction.XYStrFunctionParameter( "f" + component, default=strfunction.XYStrFunction('1.0'), tip="The %s component of the function as a Python function of %s" % (component, components))