__init__(self,
dataname=None,
type=None,
family=None,
username=None)
(Constructor)
|
|
The PropertyName constructor operates in one of two modes - either a
dataname needs to be provided, or each of type, family, and username
needs to be provided.
- Parameters:
dataname (str) - The full property name, e.g. 's_m_title'.
type (enum) - The property value type, which must be 's', 'r', 'i', or 'b'. You
can also use the predefined module constants
PROP_STRING , PROP_FLOAT (or
equivalently PROP_REAL ), PROP_INTEGER ,
and PROP_BOOLEAN .
family (str) - The family/owner of the property. If the family is one of the
recognized long family names (e.g. 'QikProp' - see the keys of
the PROP_SHORT_NAME dict),
the short family name is assigned automatically.
username (str) - The name a user would see displayed in the Maestro project table.
Underscores are replaced with spaces unless protected by a
backslash (in which case the backslash is not displayed).
Internally, PropertyName will store the 'name', which is the
fragment of the dataname that is not the type or family.
- Overrides:
object.__init__
|