107 <tr><td>None</td></tr> |
107 <tr><td>None</td></tr> |
108 </table> |
108 </table> |
109 |
109 |
110 <a NAME="ModuleItem.__init__" ID="ModuleItem.__init__"></a> |
110 <a NAME="ModuleItem.__init__" ID="ModuleItem.__init__"></a> |
111 <h4>ModuleItem (Constructor)</h4> |
111 <h4>ModuleItem (Constructor)</h4> |
112 <b>ModuleItem</b>(<i>model=None, x=0, y=0, rounded=False, parent=None, scene=None</i>) |
112 <b>ModuleItem</b>(<i>model=None, x=0, y=0, rounded=False, colors=None, parent=None, scene=None</i>) |
113 |
113 |
114 <p> |
114 <p> |
115 Constructor |
115 Constructor |
116 </p> |
116 </p> |
117 <dl> |
117 <dl> |
118 |
118 |
119 <dt><i>model</i></dt> |
119 <dt><i>model</i> (ModuleModel)</dt> |
120 <dd> |
120 <dd> |
121 module model containing the module data (ModuleModel) |
121 module model containing the module data |
122 </dd> |
122 </dd> |
123 <dt><i>x</i></dt> |
123 <dt><i>x</i> (int)</dt> |
124 <dd> |
124 <dd> |
125 x-coordinate (integer) |
125 x-coordinate |
126 </dd> |
126 </dd> |
127 <dt><i>y</i></dt> |
127 <dt><i>y</i> (int)</dt> |
128 <dd> |
128 <dd> |
129 y-coordinate (integer) |
129 y-coordinate |
130 </dd> |
130 </dd> |
131 <dt><i>rounded=</i></dt> |
131 <dt><i>rounded</i> (bool)</dt> |
132 <dd> |
132 <dd> |
133 flag indicating a rounded corner (boolean) |
133 flag indicating a rounded corner |
134 </dd> |
134 </dd> |
135 <dt><i>parent=</i></dt> |
135 <dt><i>colors</i> (tuple of (QColor, QColor))</dt> |
136 <dd> |
136 <dd> |
137 reference to the parent object (QGraphicsItem) |
137 tuple containing the foreground and background colors |
138 </dd> |
138 </dd> |
139 <dt><i>scene=</i></dt> |
139 <dt><i>parent</i> (QGraphicsItem)</dt> |
140 <dd> |
140 <dd> |
141 reference to the scene object (QGraphicsScene) |
141 reference to the parent object |
|
142 </dd> |
|
143 <dt><i>scene</i> (QGraphicsScene)</dt> |
|
144 <dd> |
|
145 reference to the scene object |
142 </dd> |
146 </dd> |
143 </dl> |
147 </dl> |
144 <a NAME="ModuleItem.__calculateSize" ID="ModuleItem.__calculateSize"></a> |
148 <a NAME="ModuleItem.__calculateSize" ID="ModuleItem.__calculateSize"></a> |
145 <h4>ModuleItem.__calculateSize</h4> |
149 <h4>ModuleItem.__calculateSize</h4> |
146 <b>__calculateSize</b>(<i></i>) |
150 <b>__calculateSize</b>(<i></i>) |