TaurusAttrForm
¶

-
class
TaurusAttrForm
(parent=None, designMode=False)[source]¶ Bases:
taurus.qt.qtgui.container.tauruswidget.TaurusWidget
A form that displays the attributes of a Device Server
-
getViewFilters
()[source]¶ returns the filters used in deciding which attributes are displayed
Return type: sequence
<callable
>Returns: a sequence of filters
-
model
¶ Returns the model name for this component.
Return type: str
Returns: the model name.
-
setExpertView
(expert)[source]¶ sets the expert view mode
Parameters: expert ( bool
) – If expert is True, attributes won’t be filtered. If it is False, attributes with display level Expert won’t be shown
-
setSortKey
(sortkey)[source]¶ sets the key function used to sort the attributes in the form
Parameters: sortkey ( callable
) – a function that takes aAttributeInfo
as argument and returns a key to use for sorting purposes (e.g. the default sortKey islambda x:x.name
)
-
setViewFilters
(filterlist)[source]¶ sets the filters to be applied when displaying the attributes
Parameters: filterlist ( sequence
<callable
>) – a sequence of attr filters. All filters will be applied to each attribute name to decide whether to display it or not. for an attribute to be plotted, the following condition must be true for all filters:bool(filter(attrname))==True
-
useParentModel
¶ Returns whether this component is using the parent model
Return type: bool
Returns: True if using parent model or False otherwise
-