def __init__(self, parent=None, **kw): INITOPT = Pmw.INITOPT optiondefs = (('style', VALUATOR_MINI, INITOPT), ) self.defineoptions(kw, optiondefs) # Initialize the superclass Valuator.__init__(self, parent) self.initialiseoptions(Floater)
def __init__(self, parent=None, **kw): INITOPT = Pmw.INITOPT optiondefs = (("style", VALUATOR_MINI, INITOPT),) self.defineoptions(kw, optiondefs) # Initialize the superclass Valuator.__init__(self, parent) self.initialiseoptions(Floater)
def __init__(self, parent=None, **kw): INITOPT = Pmw.INITOPT optiondefs = ( ('style', VALUATOR_FULL, INITOPT), ('base', 0.0, self.setBase), ('delta', 1.0, self.setDelta), ('fSnap', 0, self.setSnap), ('fRollover', 1, self.setRollover), ) self.defineoptions(kw, optiondefs) Valuator.__init__(self, parent) self.initialiseoptions(Dial)
def __init__(self, parent = None, **kw): INITOPT = Pmw.INITOPT optiondefs = ( ('style', VALUATOR_FULL, INITOPT), ('base', 0.0, self.setBase), ('delta', 1.0, self.setDelta), ('fSnap', 0, self.setSnap), ('fRollover', 1, self.setRollover), ) self.defineoptions(kw, optiondefs) Valuator.__init__(self, parent) self.initialiseoptions(Dial)
def __init__(self, parent=None, **kw): INITOPT = Pmw.INITOPT optiondefs = ( ('min', 0.0, self.setMin), ('max', 100.0, self.setMax), ('style', VALUATOR_MINI, INITOPT), ) self.defineoptions(kw, optiondefs) Valuator.__init__(self, parent) # Can not enter None for min or max, update propertyDict to reflect self.propertyDict['min']['fNone'] = 0 self.propertyDict['min']['help'] = 'Minimum allowable value.' self.propertyDict['max']['fNone'] = 0 self.propertyDict['max']['help'] = 'Maximum allowable value.' self.initialiseoptions(Slider)
def __init__(self, parent = None, **kw): INITOPT = Pmw.INITOPT optiondefs = ( ('min', 0.0, self.setMin), ('max', 100.0, self.setMax), ('style', VALUATOR_MINI, INITOPT), ) self.defineoptions(kw, optiondefs) Valuator.__init__(self, parent) # Can not enter None for min or max, update propertyDict to reflect self.propertyDict['min']['fNone'] = 0 self.propertyDict['min']['help'] = 'Minimum allowable value.' self.propertyDict['max']['fNone'] = 0 self.propertyDict['max']['help'] = 'Maximum allowable value.' self.initialiseoptions(Slider)