Package screenlets :: Package plugins :: Module TemperatureConverter :: Class TemperatureConverter

[hide private]
[frames] | no frames]

# Class TemperatureConverter

source code

    Convert.Converter --+
                        |
                       TemperatureConverter

A converter which converts temperature between Fahrenheit and Celsius.

Version: 0.2

Author: Arnav Ghosh

Instance Methods | [hide private]

__init__(self) | source code

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`: `neaten_input`, `on_key_press`, `str`

Class Variables | [hide private]

| __name__ = ``'``TemperatureConverter``'``
| __title__ = ``'``Fahrenheit / Celsius``'``
| num_fields = `2`
| field_names = ``[``u'``\u02daF``'``,` `u'``\u02daC``'``]``
Inherited from `Convert.Converter`: `active_field`, `replace`, `values`

Method Details | [hide private]

### __init__(self)
(Constructor)

source code

Overrides: Convert.Converter.__init__

### 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)