
A converter which converts sizes between B, kB, MB and GB.
Definition at line 3 of file SizeConverter.py.
Public Member Functions | |
| def | __init__ |
| def | convert |
| def | filter_key |
| def | neaten_input |
| def | on_key_press |
| def | str |
Public Attributes | |
| active_field | |
| values | |
Static Public Attributes | |
| int | active_field = 0 |
| list | field_names = ['B', 'kB', 'MB', 'GB'] |
| int | num_fields = 4 |
| replace = True | |
| list | values = [] |
| list | weights = [1, 1024, 1024 * 1024, 1024 * 1024 * 1024] |
Static Private Attributes | |
| string | __author__ = 'Hendrik Kaju' |
| string | __name__ = 'SizeConverter' |
| string | __title__ = 'B / kB / MB / GB' |
| string | __version__ = '0.2' |