eric6/Documentation/Source/eric6.Graphics.ModuleItem.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="#ModuleItem.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
109 113
110 <table> 114 <table>
111 <tr><td>None</td></tr> 115 <tr><td>None</td></tr>
112 </table> 116 </table>
113 117
118 <a NAME="ModuleItem.fromDict" ID="ModuleItem.fromDict"></a>
119 <h4>ModuleItem.fromDict (class method)</h4>
120 <b>fromDict</b>(<i>data, colors=None</i>)
121
122 <p>
123 Class method to create a class item from persisted data.
124 </p>
125 <dl>
126
127 <dt><i>data</i> (dict)</dt>
128 <dd>
129 dictionary containing the persisted data as generated
130 by toDict()
131 </dd>
132 <dt><i>colors</i> (tuple of (QColor, QColor))</dt>
133 <dd>
134 tuple containing the foreground and background colors
135 </dd>
136 </dl>
137 <dl>
138 <dt>Return:</dt>
139 <dd>
140 created class item
141 </dd>
142 </dl>
143 <dl>
144 <dt>Return Type:</dt>
145 <dd>
146 ClassItem
147 </dd>
148 </dl>
114 <a NAME="ModuleItem.__init__" ID="ModuleItem.__init__"></a> 149 <a NAME="ModuleItem.__init__" ID="ModuleItem.__init__"></a>
115 <h4>ModuleItem (Constructor)</h4> 150 <h4>ModuleItem (Constructor)</h4>
116 <b>ModuleItem</b>(<i>model=None, x=0, y=0, rounded=False, colors=None, parent=None, scene=None</i>) 151 <b>ModuleItem</b>(<i>model=None, x=0, y=0, rounded=False, colors=None, parent=None, scene=None</i>)
117 152
118 <p> 153 <p>

eric ide

mercurial