screenlets.plugins.SizeConverter.SizeConverter

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

# Class SizeConverter

source code

            object --+
                     |
     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` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

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`

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