Package screenlets :: Package plugins :: Module Convert :: Class RatioConverter

[hide private]
[frames] | no frames]

# Class RatioConverter

source code

    Converter --+
                |
               RatioConverter

Known Subclasses:
  SizeConverter.SizeConverter, LengthConverter.LengthConverter

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`

Class Variables | [hide private]

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

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)