screenlets.plugins.TemperatureConverter.TemperatureConverter

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

# Class TemperatureConverter

source code

           object --+
                    |
    Convert.Converter --+
                        |
                       TemperatureConverter

A converter which converts temperature between Fahrenheit and Celsius.

Version: 0.2

Author: Arnav Ghosh

Instance Methods | [hide private]
__init__(self) x.__init__(...) initializes x; see help(type(x)) for signature | 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` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| __name__ = ``'``TemperatureConverter``'``
| __title__ = ``'``Fahrenheit / Celsius``'``
| num_fields = `2`
| field_names = ``[``u'``˚F``'``,` `u'``˚C``'``]``
Inherited from `Convert.Converter`: `active_field`, `replace`, `values`

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

Method Details | [hide private]

### __init__(self) (Constructor) | source code
x.__init__(...) initializes x; see help(type(x)) for signature Overrides: object.__init__ (inherited documentation)

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