Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)
Пример #5
0
 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)
Пример #6
0
 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)