eric6/Documentation/Source/eric6.Graphics.ClassItem.html

changeset 8296
14f33eededf7
parent 8294
cb4e5bbf3a2c
equal deleted inserted replaced
8295:3f5e8b0a338e 8296:14f33eededf7
64 <tr><td>ItemType</td></tr> 64 <tr><td>ItemType</td></tr>
65 </table> 65 </table>
66 <h3>Class Methods</h3> 66 <h3>Class Methods</h3>
67 67
68 <table> 68 <table>
69 <tr><td>None</td></tr> 69
70 <tr>
71 <td><a href="#ClassItem.fromDict">fromDict</a></td>
72 <td>Class method to create a class item from persisted data.</td>
73 </tr>
70 </table> 74 </table>
71 <h3>Methods</h3> 75 <h3>Methods</h3>
72 76
73 <table> 77 <table>
74 78
113 117
114 <table> 118 <table>
115 <tr><td>None</td></tr> 119 <tr><td>None</td></tr>
116 </table> 120 </table>
117 121
122 <a NAME="ClassItem.fromDict" ID="ClassItem.fromDict"></a>
123 <h4>ClassItem.fromDict (class method)</h4>
124 <b>fromDict</b>(<i>data, colors=None</i>)
125
126 <p>
127 Class method to create a class item from persisted data.
128 </p>
129 <dl>
130
131 <dt><i>data</i> (dict)</dt>
132 <dd>
133 dictionary containing the persisted data as generated
134 by toDict()
135 </dd>
136 <dt><i>colors</i> (tuple of (QColor, QColor))</dt>
137 <dd>
138 tuple containing the foreground and background colors
139 </dd>
140 </dl>
141 <dl>
142 <dt>Return:</dt>
143 <dd>
144 created class item
145 </dd>
146 </dl>
147 <dl>
148 <dt>Return Type:</dt>
149 <dd>
150 ClassItem
151 </dd>
152 </dl>
118 <a NAME="ClassItem.__init__" ID="ClassItem.__init__"></a> 153 <a NAME="ClassItem.__init__" ID="ClassItem.__init__"></a>
119 <h4>ClassItem (Constructor)</h4> 154 <h4>ClassItem (Constructor)</h4>
120 <b>ClassItem</b>(<i>model=None, external=False, x=0, y=0, rounded=False, noAttrs=False, colors=None, parent=None, scene=None</i>) 155 <b>ClassItem</b>(<i>model=None, external=False, x=0, y=0, rounded=False, noAttrs=False, colors=None, parent=None, scene=None</i>)
121 156
122 <p> 157 <p>

eric ide

mercurial