Package param :: Module tk :: Class Translator
[hide private]
[frames] | no frames]

Class Translator

source code


Abstract class that

Translators handle translation between objects and their string representations in the GUI.

last_string2object_failed is a flag that can be set to indicate that the last string-to-object translation failed. (TkParameterized checks this attribute for indicating errors to the user.)
Instance Methods [hide private]
 
__init__(self, param, initial_value=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
string2object(self, string_) source code
 
object2string(self, object_) source code
 
_pass_out_msg(self, msg) source code
 
__copy__(self)
Copy only translator-specific state.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  last_string2object_failed = False
bool(x) -> bool
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, param, initial_value=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

last_string2object_failed

bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.

Value:
False