eric6/Documentation/Source/eric6.E5Gui.E5AnimatedWidget.html

branch
maintenance
changeset 6989
8b8cadf8d7e9
parent 6942
2602857055c5
child 7273
391d6b7b1eff
equal deleted inserted replaced
6938:7926553b7509 6989:8b8cadf8d7e9
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.E5Gui.E5AnimatedWidget</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.E5Gui.E5AnimatedWidget</h1>
23 <p>
24 Module implementing an animated widget.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#E5AnimatedWidget">E5AnimatedWidget</a></td>
34 <td>Class implementing an animated widget.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="E5AnimatedWidget" ID="E5AnimatedWidget"></a>
43 <h2>E5AnimatedWidget</h2>
44 <p>
45 Class implementing an animated widget.
46 </p>
47 <h3>Derived from</h3>
48 QWidget
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>DirectionDown</td></tr><tr><td>DirectionUp</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#E5AnimatedWidget.__init__">E5AnimatedWidget</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#E5AnimatedWidget.__animateFrame">__animateFrame</a></td>
64 <td>Private slot to animate the next frame.</td>
65 </tr><tr>
66 <td><a href="#E5AnimatedWidget.hide">hide</a></td>
67 <td>Public slot to hide the animated widget.</td>
68 </tr><tr>
69 <td><a href="#E5AnimatedWidget.resizeEvent">resizeEvent</a></td>
70 <td>Protected method to handle a resize event.</td>
71 </tr><tr>
72 <td><a href="#E5AnimatedWidget.startAnimation">startAnimation</a></td>
73 <td>Public slot to start the animation.</td>
74 </tr><tr>
75 <td><a href="#E5AnimatedWidget.widget">widget</a></td>
76 <td>Public method to get a reference to the animated widget.</td>
77 </tr>
78 </table>
79 <h3>Static Methods</h3>
80 <table>
81 <tr><td>None</td></tr>
82 </table>
83 <a NAME="E5AnimatedWidget.__init__" ID="E5AnimatedWidget.__init__"></a>
84 <h4>E5AnimatedWidget (Constructor)</h4>
85 <b>E5AnimatedWidget</b>(<i>direction=DirectionDown, duration=300, parent=None</i>)
86 <p>
87 Constructor
88 </p><dl>
89 <dt><i>direction</i> (int (one of DirectionDown or DirectionUp))</dt>
90 <dd>
91 direction of the animation
92 </dd><dt><i>duration</i> (int)</dt>
93 <dd>
94 duration of the animation
95 </dd><dt><i>parent</i> (QWidget)</dt>
96 <dd>
97 reference to the parent widget
98 </dd>
99 </dl><a NAME="E5AnimatedWidget.__animateFrame" ID="E5AnimatedWidget.__animateFrame"></a>
100 <h4>E5AnimatedWidget.__animateFrame</h4>
101 <b>__animateFrame</b>(<i>frame</i>)
102 <p>
103 Private slot to animate the next frame.
104 </p><dl>
105 <dt><i>frame</i> (int)</dt>
106 <dd>
107 frame number
108 </dd>
109 </dl><a NAME="E5AnimatedWidget.hide" ID="E5AnimatedWidget.hide"></a>
110 <h4>E5AnimatedWidget.hide</h4>
111 <b>hide</b>(<i></i>)
112 <p>
113 Public slot to hide the animated widget.
114 </p><a NAME="E5AnimatedWidget.resizeEvent" ID="E5AnimatedWidget.resizeEvent"></a>
115 <h4>E5AnimatedWidget.resizeEvent</h4>
116 <b>resizeEvent</b>(<i>evt</i>)
117 <p>
118 Protected method to handle a resize event.
119 </p><dl>
120 <dt><i>evt</i> (QResizeEvent)</dt>
121 <dd>
122 reference to the event object
123 </dd>
124 </dl><a NAME="E5AnimatedWidget.startAnimation" ID="E5AnimatedWidget.startAnimation"></a>
125 <h4>E5AnimatedWidget.startAnimation</h4>
126 <b>startAnimation</b>(<i></i>)
127 <p>
128 Public slot to start the animation.
129 </p><a NAME="E5AnimatedWidget.widget" ID="E5AnimatedWidget.widget"></a>
130 <h4>E5AnimatedWidget.widget</h4>
131 <b>widget</b>(<i></i>)
132 <p>
133 Public method to get a reference to the animated widget.
134 </p><dl>
135 <dt>Returns:</dt>
136 <dd>
137 reference to the animated widget
138 </dd>
139 </dl><dl>
140 <dt>Return Type:</dt>
141 <dd>
142 QWidget
143 </dd>
144 </dl>
145 <div align="right"><a href="#top">Up</a></div>
146 <hr />
147 </body></html>

eric ide

mercurial