|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Snapshot.SnapshotTimer</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.Snapshot.SnapshotTimer</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing the snapshot timer 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="#SnapshotTimer">SnapshotTimer</a></td> |
|
25 <td>Class implementing the snapshot timer 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="SnapshotTimer" ID="SnapshotTimer"></a> |
|
36 <h2>SnapshotTimer</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing the snapshot timer widget. |
|
40 </p> |
|
41 <h3>Signals</h3> |
|
42 <dl> |
|
43 |
|
44 <dt>timeout()</dt> |
|
45 <dd> |
|
46 emitted after the timer timed out |
|
47 </dd> |
|
48 </dl> |
|
49 <h3>Derived from</h3> |
|
50 QWidget |
|
51 <h3>Class Attributes</h3> |
|
52 |
|
53 <table> |
|
54 <tr><td>None</td></tr> |
|
55 </table> |
|
56 <h3>Class Methods</h3> |
|
57 |
|
58 <table> |
|
59 <tr><td>None</td></tr> |
|
60 </table> |
|
61 <h3>Methods</h3> |
|
62 |
|
63 <table> |
|
64 |
|
65 <tr> |
|
66 <td><a href="#SnapshotTimer.__init__">SnapshotTimer</a></td> |
|
67 <td>Constructor</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#SnapshotTimer.__bell">__bell</a></td> |
|
71 <td>Private slot handling timer timeouts.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#SnapshotTimer.enterEvent">enterEvent</a></td> |
|
75 <td>Protected method handling the mouse cursor entering the widget.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#SnapshotTimer.paintEvent">paintEvent</a></td> |
|
79 <td>Protected method handling paint events.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#SnapshotTimer.start">start</a></td> |
|
83 <td>Public method to start the timer.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#SnapshotTimer.stop">stop</a></td> |
|
87 <td>Public method to stop the timer.</td> |
|
88 </tr> |
|
89 </table> |
|
90 <h3>Static Methods</h3> |
|
91 |
|
92 <table> |
|
93 <tr><td>None</td></tr> |
|
94 </table> |
|
95 |
|
96 <a NAME="SnapshotTimer.__init__" ID="SnapshotTimer.__init__"></a> |
|
97 <h4>SnapshotTimer (Constructor)</h4> |
|
98 <b>SnapshotTimer</b>(<i></i>) |
|
99 |
|
100 <p> |
|
101 Constructor |
|
102 </p> |
|
103 <a NAME="SnapshotTimer.__bell" ID="SnapshotTimer.__bell"></a> |
|
104 <h4>SnapshotTimer.__bell</h4> |
|
105 <b>__bell</b>(<i></i>) |
|
106 |
|
107 <p> |
|
108 Private slot handling timer timeouts. |
|
109 </p> |
|
110 <a NAME="SnapshotTimer.enterEvent" ID="SnapshotTimer.enterEvent"></a> |
|
111 <h4>SnapshotTimer.enterEvent</h4> |
|
112 <b>enterEvent</b>(<i>evt</i>) |
|
113 |
|
114 <p> |
|
115 Protected method handling the mouse cursor entering the widget. |
|
116 </p> |
|
117 <dl> |
|
118 |
|
119 <dt><i>evt</i></dt> |
|
120 <dd> |
|
121 enter event (QEvent) |
|
122 </dd> |
|
123 </dl> |
|
124 <a NAME="SnapshotTimer.paintEvent" ID="SnapshotTimer.paintEvent"></a> |
|
125 <h4>SnapshotTimer.paintEvent</h4> |
|
126 <b>paintEvent</b>(<i>evt</i>) |
|
127 |
|
128 <p> |
|
129 Protected method handling paint events. |
|
130 </p> |
|
131 <dl> |
|
132 |
|
133 <dt><i>evt</i></dt> |
|
134 <dd> |
|
135 paint event (QPaintEvent) |
|
136 </dd> |
|
137 </dl> |
|
138 <a NAME="SnapshotTimer.start" ID="SnapshotTimer.start"></a> |
|
139 <h4>SnapshotTimer.start</h4> |
|
140 <b>start</b>(<i>seconds</i>) |
|
141 |
|
142 <p> |
|
143 Public method to start the timer. |
|
144 </p> |
|
145 <dl> |
|
146 |
|
147 <dt><i>seconds</i></dt> |
|
148 <dd> |
|
149 timeout value (integer) |
|
150 </dd> |
|
151 </dl> |
|
152 <a NAME="SnapshotTimer.stop" ID="SnapshotTimer.stop"></a> |
|
153 <h4>SnapshotTimer.stop</h4> |
|
154 <b>stop</b>(<i></i>) |
|
155 |
|
156 <p> |
|
157 Public method to stop the timer. |
|
158 </p> |
|
159 <div align="right"><a href="#top">Up</a></div> |
|
160 <hr /> |
|
161 </body></html> |