class documentation

class Coordinate(ConfigDefinition): (source)

View In Hierarchy

Class defining a config value that is a coordinate (i.e. a tuple of two integers). This is e.g. used to store for window coordinates. If the value is a list of two integers, it will automatically be converted to a tuple.
Method __init__ Undocumented
Method check No summary

Inherited from ConfigDefinition:

Method __eq__ Undocumented
Method __ne__ Undocumented
Method tostring Undocumented
Class Variable __slots__ Undocumented
Instance Variable allow_empty Undocumented
Instance Variable default Undocumented
Method _check_allow_empty Undocumented
Method _eval_string Undocumented
def __init__(self, default, allow_empty=False): (source)
def check(self, value): (source)
Check value to be a valid value for this key
Returns
(converted) value if valid
Raises
ValueErrorif value is invalid and can not be converted