Package screenlets :: Package plugins :: Module SizeConverter :: Class SizeConverter

[hide private]
[frames] | no frames]

# Class SizeConverter

source code

     Convert.Converter --+
                         |
    Convert.RatioConverter --+
                             |
                            SizeConverter

A converter which converts sizes between B, kB, MB and GB.

Version: 0.2

Author: Hendrik Kaju

Instance Methods | [hide private]

Inherited from `Convert.RatioConverter`: `convert`, `filter_key` Inherited from `Convert.Converter`: `__init__`, `neaten_input`, `on_key_press`, `str`

Class Variables | [hide private]

| __name__ = ``'``SizeConverter``'``
| __title__ = ``'``B / kB / MB / GB``'``
| num_fields = `4`
| field_names = ``[``'``B``'``,` `'``kB``'``,` `'``MB``'``,` `'``GB``'``]``
| weights = ``[`1`,` 1024`,` 1048576`,` 1073741824`]``
Inherited from `Convert.Converter`: `active_field`, `replace`, `values`