145 |
149 |
146 <table> |
150 <table> |
147 <tr><td>None</td></tr> |
151 <tr><td>None</td></tr> |
148 </table> |
152 </table> |
149 |
153 |
|
154 <a NAME="UMLItem.fromDict" ID="UMLItem.fromDict"></a> |
|
155 <h4>UMLItem.fromDict (class method)</h4> |
|
156 <b>fromDict</b>(<i>data, colors=None</i>) |
|
157 |
|
158 <p> |
|
159 Class method to create a generic UML item from persisted data. |
|
160 </p> |
|
161 <dl> |
|
162 |
|
163 <dt><i>data</i> (dict)</dt> |
|
164 <dd> |
|
165 dictionary containing the persisted data as generated |
|
166 by toDict() |
|
167 </dd> |
|
168 <dt><i>colors</i> (tuple of (QColor, QColor))</dt> |
|
169 <dd> |
|
170 tuple containing the foreground and background colors |
|
171 </dd> |
|
172 </dl> |
|
173 <dl> |
|
174 <dt>Return:</dt> |
|
175 <dd> |
|
176 created UML item |
|
177 </dd> |
|
178 </dl> |
|
179 <dl> |
|
180 <dt>Return Type:</dt> |
|
181 <dd> |
|
182 UMLItem |
|
183 </dd> |
|
184 </dl> |
150 <a NAME="UMLItem.__init__" ID="UMLItem.__init__"></a> |
185 <a NAME="UMLItem.__init__" ID="UMLItem.__init__"></a> |
151 <h4>UMLItem (Constructor)</h4> |
186 <h4>UMLItem (Constructor)</h4> |
152 <b>UMLItem</b>(<i>model=None, x=0, y=0, rounded=False, colors=None, parent=None</i>) |
187 <b>UMLItem</b>(<i>model=None, x=0, y=0, rounded=False, colors=None, parent=None</i>) |
153 |
188 |
154 <p> |
189 <p> |