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

branch
maintenance
changeset 7286
7eb04391adf7
parent 7273
391d6b7b1eff
child 7989
a21d673a8f99
equal deleted inserted replaced
7226:babe80d84a3e 7286:7eb04391adf7
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.E5Gui.E5AnimatedWidget</h1> 23 <h1>eric6.E5Gui.E5AnimatedWidget</h1>
24
23 <p> 25 <p>
24 Module implementing an animated widget. 26 Module implementing an animated widget.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
34
31 <table> 35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#E5AnimatedWidget">E5AnimatedWidget</a></td> 38 <td><a href="#E5AnimatedWidget">E5AnimatedWidget</a></td>
34 <td>Class implementing an animated widget.</td> 39 <td>Class implementing an animated widget.</td>
35 </tr> 40 </tr>
36 </table> 41 </table>
37 <h3>Functions</h3> 42 <h3>Functions</h3>
43
38 <table> 44 <table>
39 <tr><td>None</td></tr> 45 <tr><td>None</td></tr>
40 </table> 46 </table>
41 <hr /><hr /> 47 <hr />
48 <hr />
42 <a NAME="E5AnimatedWidget" ID="E5AnimatedWidget"></a> 49 <a NAME="E5AnimatedWidget" ID="E5AnimatedWidget"></a>
43 <h2>E5AnimatedWidget</h2> 50 <h2>E5AnimatedWidget</h2>
51
44 <p> 52 <p>
45 Class implementing an animated widget. 53 Class implementing an animated widget.
46 </p> 54 </p>
47 <h3>Derived from</h3> 55 <h3>Derived from</h3>
48 QWidget 56 QWidget
49 <h3>Class Attributes</h3> 57 <h3>Class Attributes</h3>
58
50 <table> 59 <table>
51 <tr><td>DirectionDown</td></tr><tr><td>DirectionUp</td></tr> 60 <tr><td>DirectionDown</td></tr><tr><td>DirectionUp</td></tr>
52 </table> 61 </table>
53 <h3>Class Methods</h3> 62 <h3>Class Methods</h3>
63
54 <table> 64 <table>
55 <tr><td>None</td></tr> 65 <tr><td>None</td></tr>
56 </table> 66 </table>
57 <h3>Methods</h3> 67 <h3>Methods</h3>
68
58 <table> 69 <table>
70
59 <tr> 71 <tr>
60 <td><a href="#E5AnimatedWidget.__init__">E5AnimatedWidget</a></td> 72 <td><a href="#E5AnimatedWidget.__init__">E5AnimatedWidget</a></td>
61 <td>Constructor</td> 73 <td>Constructor</td>
62 </tr><tr> 74 </tr>
75 <tr>
63 <td><a href="#E5AnimatedWidget.__animateFrame">__animateFrame</a></td> 76 <td><a href="#E5AnimatedWidget.__animateFrame">__animateFrame</a></td>
64 <td>Private slot to animate the next frame.</td> 77 <td>Private slot to animate the next frame.</td>
65 </tr><tr> 78 </tr>
79 <tr>
66 <td><a href="#E5AnimatedWidget.hide">hide</a></td> 80 <td><a href="#E5AnimatedWidget.hide">hide</a></td>
67 <td>Public slot to hide the animated widget.</td> 81 <td>Public slot to hide the animated widget.</td>
68 </tr><tr> 82 </tr>
83 <tr>
69 <td><a href="#E5AnimatedWidget.resizeEvent">resizeEvent</a></td> 84 <td><a href="#E5AnimatedWidget.resizeEvent">resizeEvent</a></td>
70 <td>Protected method to handle a resize event.</td> 85 <td>Protected method to handle a resize event.</td>
71 </tr><tr> 86 </tr>
87 <tr>
72 <td><a href="#E5AnimatedWidget.startAnimation">startAnimation</a></td> 88 <td><a href="#E5AnimatedWidget.startAnimation">startAnimation</a></td>
73 <td>Public slot to start the animation.</td> 89 <td>Public slot to start the animation.</td>
74 </tr><tr> 90 </tr>
91 <tr>
75 <td><a href="#E5AnimatedWidget.widget">widget</a></td> 92 <td><a href="#E5AnimatedWidget.widget">widget</a></td>
76 <td>Public method to get a reference to the animated widget.</td> 93 <td>Public method to get a reference to the animated widget.</td>
77 </tr> 94 </tr>
78 </table> 95 </table>
79 <h3>Static Methods</h3> 96 <h3>Static Methods</h3>
97
80 <table> 98 <table>
81 <tr><td>None</td></tr> 99 <tr><td>None</td></tr>
82 </table> 100 </table>
101
83 <a NAME="E5AnimatedWidget.__init__" ID="E5AnimatedWidget.__init__"></a> 102 <a NAME="E5AnimatedWidget.__init__" ID="E5AnimatedWidget.__init__"></a>
84 <h4>E5AnimatedWidget (Constructor)</h4> 103 <h4>E5AnimatedWidget (Constructor)</h4>
85 <b>E5AnimatedWidget</b>(<i>direction=DirectionDown, duration=300, parent=None</i>) 104 <b>E5AnimatedWidget</b>(<i>direction=DirectionDown, duration=300, parent=None</i>)
105
86 <p> 106 <p>
87 Constructor 107 Constructor
88 </p><dl> 108 </p>
109 <dl>
110
89 <dt><i>direction</i> (int (one of DirectionDown or DirectionUp))</dt> 111 <dt><i>direction</i> (int (one of DirectionDown or DirectionUp))</dt>
90 <dd> 112 <dd>
91 direction of the animation 113 direction of the animation
92 </dd><dt><i>duration</i> (int)</dt> 114 </dd>
115 <dt><i>duration</i> (int)</dt>
93 <dd> 116 <dd>
94 duration of the animation 117 duration of the animation
95 </dd><dt><i>parent</i> (QWidget)</dt> 118 </dd>
119 <dt><i>parent</i> (QWidget)</dt>
96 <dd> 120 <dd>
97 reference to the parent widget 121 reference to the parent widget
98 </dd> 122 </dd>
99 </dl><a NAME="E5AnimatedWidget.__animateFrame" ID="E5AnimatedWidget.__animateFrame"></a> 123 </dl>
124 <a NAME="E5AnimatedWidget.__animateFrame" ID="E5AnimatedWidget.__animateFrame"></a>
100 <h4>E5AnimatedWidget.__animateFrame</h4> 125 <h4>E5AnimatedWidget.__animateFrame</h4>
101 <b>__animateFrame</b>(<i>frame</i>) 126 <b>__animateFrame</b>(<i>frame</i>)
127
102 <p> 128 <p>
103 Private slot to animate the next frame. 129 Private slot to animate the next frame.
104 </p><dl> 130 </p>
131 <dl>
132
105 <dt><i>frame</i> (int)</dt> 133 <dt><i>frame</i> (int)</dt>
106 <dd> 134 <dd>
107 frame number 135 frame number
108 </dd> 136 </dd>
109 </dl><a NAME="E5AnimatedWidget.hide" ID="E5AnimatedWidget.hide"></a> 137 </dl>
138 <a NAME="E5AnimatedWidget.hide" ID="E5AnimatedWidget.hide"></a>
110 <h4>E5AnimatedWidget.hide</h4> 139 <h4>E5AnimatedWidget.hide</h4>
111 <b>hide</b>(<i></i>) 140 <b>hide</b>(<i></i>)
141
112 <p> 142 <p>
113 Public slot to hide the animated widget. 143 Public slot to hide the animated widget.
114 </p><a NAME="E5AnimatedWidget.resizeEvent" ID="E5AnimatedWidget.resizeEvent"></a> 144 </p>
145 <a NAME="E5AnimatedWidget.resizeEvent" ID="E5AnimatedWidget.resizeEvent"></a>
115 <h4>E5AnimatedWidget.resizeEvent</h4> 146 <h4>E5AnimatedWidget.resizeEvent</h4>
116 <b>resizeEvent</b>(<i>evt</i>) 147 <b>resizeEvent</b>(<i>evt</i>)
148
117 <p> 149 <p>
118 Protected method to handle a resize event. 150 Protected method to handle a resize event.
119 </p><dl> 151 </p>
152 <dl>
153
120 <dt><i>evt</i> (QResizeEvent)</dt> 154 <dt><i>evt</i> (QResizeEvent)</dt>
121 <dd> 155 <dd>
122 reference to the event object 156 reference to the event object
123 </dd> 157 </dd>
124 </dl><a NAME="E5AnimatedWidget.startAnimation" ID="E5AnimatedWidget.startAnimation"></a> 158 </dl>
159 <a NAME="E5AnimatedWidget.startAnimation" ID="E5AnimatedWidget.startAnimation"></a>
125 <h4>E5AnimatedWidget.startAnimation</h4> 160 <h4>E5AnimatedWidget.startAnimation</h4>
126 <b>startAnimation</b>(<i></i>) 161 <b>startAnimation</b>(<i></i>)
162
127 <p> 163 <p>
128 Public slot to start the animation. 164 Public slot to start the animation.
129 </p><a NAME="E5AnimatedWidget.widget" ID="E5AnimatedWidget.widget"></a> 165 </p>
166 <a NAME="E5AnimatedWidget.widget" ID="E5AnimatedWidget.widget"></a>
130 <h4>E5AnimatedWidget.widget</h4> 167 <h4>E5AnimatedWidget.widget</h4>
131 <b>widget</b>(<i></i>) 168 <b>widget</b>(<i></i>)
169
132 <p> 170 <p>
133 Public method to get a reference to the animated widget. 171 Public method to get a reference to the animated widget.
134 </p><dl> 172 </p>
173 <dl>
135 <dt>Returns:</dt> 174 <dt>Returns:</dt>
136 <dd> 175 <dd>
137 reference to the animated widget 176 reference to the animated widget
138 </dd> 177 </dd>
139 </dl><dl> 178 </dl>
179 <dl>
140 <dt>Return Type:</dt> 180 <dt>Return Type:</dt>
141 <dd> 181 <dd>
142 QWidget 182 QWidget
143 </dd> 183 </dd>
144 </dl> 184 </dl>

eric ide

mercurial