Package screenlets :: Package plugins :: Module BaseConverter :: Class BaseConverter

[hide private]
[frames] | no frames]

# Class BaseConverter

source code

    Convert.Converter --+
                        |
                       BaseConverter

A converter which converts numbers between decimal, hexadecimal and octal bases.

Version: 0.1

Author: Vasek Potocek

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 `Convert.Converter`: `__init__`, `neaten_input`, `on_key_press`, `str`

Class Variables | [hide private]

| __name__ = ``'``BaseConverter``'``
| __title__ = ``'``Dec / Hex / Oct``'``
| num_fields = `3`
| field_names = ``[``'``Dec``'``,` `'``Hex``'``,` `'``Oct``'``]``
Inherited from `Convert.Converter`: `active_field`, `replace`, `values`

Method Details | [hide private]

### filter_key(self, key)

source code

Decides whether to accept pressed key.

Overrides: Convert.Converter.filter_key
  (inherited documentation)

### convert(self)

source code

Recalculates field values after changes.

Overrides: Convert.Converter.convert
  (inherited documentation)