TaurusModelModel
¶
digraph inheritanced9e9f2a38f {
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"QAbstractItemModel" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"QObject" -> "QAbstractItemModel" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QAbstractListModel" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"QAbstractItemModel" -> "QAbstractListModel" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QObject" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"];
"TaurusModelModel" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A Qt data model for describing taurus models"];
"QAbstractListModel" -> "TaurusModelModel" [arrowsize=0.5,style="setlinewidth(0.5)"];
"simplewrapper" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"wrapper" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
-
class
TaurusModelModel
(items=None)[source]¶ Bases:
PyQt4.QtCore.QAbstractListModel
A Qt data model for describing taurus models
-
addItem
(item)[source]¶ appends an item to the internal list
Parameters: item ( TaurusModelItem
) –
-
insertItems
(row, items)[source]¶ convenience method to add new rows by passing a list of strings ()
Parameters: - row (
int
) – the row of the list at which the item insertion starts, if row==-1, items will be appended to the list - items (
seq
) – a sequence items to add to the list. The objects in the sequence can be either strings,TaurusModelItem
objects or tuples of valid arguments for initializingTaurusModelItem
objects
- row (
-