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

Class BaseConverter

source code

       object --+    
                |    
Convert.Converter --+
                    |
                   BaseConverter

A converter which converts numbers between decimal, hexadecimal and octal bases.


Version: 0.1

Author: Vasek Potocek

Instance Methods [hide private]
 
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: __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__ = 'BaseConverter'
  __title__ = 'Dec / Hex / Oct'
  num_fields = 3
  field_names = ['Dec', 'Hex', 'Oct']

Inherited from Convert.Converter: active_field, replace, values

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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)