Exemple #1
0
 def validValue(self, value):
     if type(value) is StringType:
         try:
             fn = strfunction.XYStrFunction(value)
             return True
         except:
             return False
     return isinstance(value, strfunction.XYStrFunction)
Exemple #2
0
 def get_value(self):
     debug.mainthreadTest()
     return strfunction.XYStrFunction(self.gtk.get_text().lstrip())
Exemple #3
0
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))