src/eric7/Documentation/Source/eric7.EricWidgets.EricAnimatedWidget.html

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8596
d64760b2da50
child 10478
de9106c55c3d
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.EricWidgets.EricAnimatedWidget</title>
4 <meta charset="UTF-8">
5 <link rel="stylesheet" href="styles.css">
6 </head>
7 <body>
8 <a NAME="top" ID="top"></a>
9 <h1>eric7.EricWidgets.EricAnimatedWidget</h1>
10
11 <p>
12 Module implementing an animated widget.
13 </p>
14 <h3>Global Attributes</h3>
15
16 <table>
17 <tr><td>None</td></tr>
18 </table>
19 <h3>Classes</h3>
20
21 <table>
22
23 <tr>
24 <td><a href="#EricAnimatedWidget">EricAnimatedWidget</a></td>
25 <td>Class implementing an animated widget.</td>
26 </tr>
27 </table>
28 <h3>Functions</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <hr />
34 <hr />
35 <a NAME="EricAnimatedWidget" ID="EricAnimatedWidget"></a>
36 <h2>EricAnimatedWidget</h2>
37
38 <p>
39 Class implementing an animated widget.
40 </p>
41 <h3>Derived from</h3>
42 QWidget
43 <h3>Class Attributes</h3>
44
45 <table>
46 <tr><td>DirectionDown</td></tr><tr><td>DirectionUp</td></tr>
47 </table>
48 <h3>Class Methods</h3>
49
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Methods</h3>
54
55 <table>
56
57 <tr>
58 <td><a href="#EricAnimatedWidget.__init__">EricAnimatedWidget</a></td>
59 <td>Constructor</td>
60 </tr>
61 <tr>
62 <td><a href="#EricAnimatedWidget.__animateFrame">__animateFrame</a></td>
63 <td>Private slot to animate the next frame.</td>
64 </tr>
65 <tr>
66 <td><a href="#EricAnimatedWidget.hide">hide</a></td>
67 <td>Public slot to hide the animated widget.</td>
68 </tr>
69 <tr>
70 <td><a href="#EricAnimatedWidget.resizeEvent">resizeEvent</a></td>
71 <td>Protected method to handle a resize event.</td>
72 </tr>
73 <tr>
74 <td><a href="#EricAnimatedWidget.startAnimation">startAnimation</a></td>
75 <td>Public slot to start the animation.</td>
76 </tr>
77 <tr>
78 <td><a href="#EricAnimatedWidget.widget">widget</a></td>
79 <td>Public method to get a reference to the animated widget.</td>
80 </tr>
81 </table>
82 <h3>Static Methods</h3>
83
84 <table>
85 <tr><td>None</td></tr>
86 </table>
87
88 <a NAME="EricAnimatedWidget.__init__" ID="EricAnimatedWidget.__init__"></a>
89 <h4>EricAnimatedWidget (Constructor)</h4>
90 <b>EricAnimatedWidget</b>(<i>direction=DirectionDown, duration=300, parent=None</i>)
91
92 <p>
93 Constructor
94 </p>
95 <dl>
96
97 <dt><i>direction</i> (int (one of DirectionDown or DirectionUp))</dt>
98 <dd>
99 direction of the animation
100 </dd>
101 <dt><i>duration</i> (int)</dt>
102 <dd>
103 duration of the animation
104 </dd>
105 <dt><i>parent</i> (QWidget)</dt>
106 <dd>
107 reference to the parent widget
108 </dd>
109 </dl>
110 <a NAME="EricAnimatedWidget.__animateFrame" ID="EricAnimatedWidget.__animateFrame"></a>
111 <h4>EricAnimatedWidget.__animateFrame</h4>
112 <b>__animateFrame</b>(<i>frame</i>)
113
114 <p>
115 Private slot to animate the next frame.
116 </p>
117 <dl>
118
119 <dt><i>frame</i> (int)</dt>
120 <dd>
121 frame number
122 </dd>
123 </dl>
124 <a NAME="EricAnimatedWidget.hide" ID="EricAnimatedWidget.hide"></a>
125 <h4>EricAnimatedWidget.hide</h4>
126 <b>hide</b>(<i></i>)
127
128 <p>
129 Public slot to hide the animated widget.
130 </p>
131 <a NAME="EricAnimatedWidget.resizeEvent" ID="EricAnimatedWidget.resizeEvent"></a>
132 <h4>EricAnimatedWidget.resizeEvent</h4>
133 <b>resizeEvent</b>(<i>evt</i>)
134
135 <p>
136 Protected method to handle a resize event.
137 </p>
138 <dl>
139
140 <dt><i>evt</i> (QResizeEvent)</dt>
141 <dd>
142 reference to the event object
143 </dd>
144 </dl>
145 <a NAME="EricAnimatedWidget.startAnimation" ID="EricAnimatedWidget.startAnimation"></a>
146 <h4>EricAnimatedWidget.startAnimation</h4>
147 <b>startAnimation</b>(<i></i>)
148
149 <p>
150 Public slot to start the animation.
151 </p>
152 <a NAME="EricAnimatedWidget.widget" ID="EricAnimatedWidget.widget"></a>
153 <h4>EricAnimatedWidget.widget</h4>
154 <b>widget</b>(<i></i>)
155
156 <p>
157 Public method to get a reference to the animated widget.
158 </p>
159 <dl>
160 <dt>Return:</dt>
161 <dd>
162 reference to the animated widget
163 </dd>
164 </dl>
165 <dl>
166 <dt>Return Type:</dt>
167 <dd>
168 QWidget
169 </dd>
170 </dl>
171 <div align="right"><a href="#top">Up</a></div>
172 <hr />
173 </body></html>

eric ide

mercurial