AccessEngine :: AEState :: Setting :: PercentRangeView :: Class PercentRangeView
[hide private]
[frames] | no frames]

Class PercentRangeView

source code

  object --+    
           |    
RawRangeView --+
               |
              PercentRangeView

Exposes the percent value, min, and max of a PercentRangeSetting

Instance Methods [hide private]
 
_setPercent(self, val)
Converts the given percentage to a raw value and stores it.
source code
integer
_getPercent(self)
Gets the current value as a percentage.
source code

Inherited from RawRangeView: __init__

Inherited from RawRangeView (private): _getValue, _setValue

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  precision = property(lambda self: 0)
  min = property(lambda self: 0)
  max = property(lambda self: 100)
  value = property(_getPercent, _setPercent)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_setPercent(self, val)

source code 
Converts the given percentage to a raw value and stores it.
Parameters:
  • val (integer) - New percent to store
Raises:
  • TypeError - When the value cannot be converted to a integer

_getPercent(self)

source code 
Gets the current value as a percentage.
Returns: integer
Current value as %