screenlets.plugins.Convert.RatioConverter

Package screenlets :: Package plugins :: Module Convert :: Class RatioConverter |
[hide private]
[frames] | no frames]

# Class RatioConverter

source code

    object --+
             |
     Converter --+
                 |
                RatioConverter

Known Subclasses:
  - LengthConverter.LengthConverter
  - , SizeConverter.SizeConverter

A base class of converters having linear dependances between their fields.

Instance Methods | [hide private]
filter_key(self, key) Decides whether to accept pressed key. | source code
convert(self) Recalculates field values after changes. | source code
Inherited from `Converter`: `__init__`, `neaten_input`, `on_key_press`, `str` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| __name__ = ``'``RatioConverter``'``
| __title__ = ``'``Base / Ratio``'``
| weights = ``[``]``
Inherited from `Converter`: `active_field`, `field_names`, `num_fields`, `replace`, `values`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### filter_key(self, key) | source code
Decides whether to accept pressed key. Overrides: Converter.filter_key (inherited documentation)

### convert(self) | source code
Recalculates field values after changes. Overrides: Converter.convert (inherited documentation)