2523:139f182b72f6 | 2525:8b507a9a2d40 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing the snapshot timer widget. | 7 Module implementing the snapshot timer widget. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
9 | 11 |
10 from PyQt4.QtCore import pyqtSignal, Qt, QTimer, QRect | 12 from PyQt4.QtCore import pyqtSignal, Qt, QTimer, QRect |
11 from PyQt4.QtGui import QWidget, QApplication, QPainter, QToolTip, QPalette | 13 from PyQt4.QtGui import QWidget, QApplication, QPainter, QToolTip, QPalette |
12 | 14 |
13 | 15 |
21 | 23 |
22 def __init__(self): | 24 def __init__(self): |
23 """ | 25 """ |
24 Constructor | 26 Constructor |
25 """ | 27 """ |
26 super().__init__(None) | 28 super(SnapshotTimer, self).__init__(None) |
27 | 29 |
28 self.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint | | 30 self.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint | |
29 Qt.X11BypassWindowManagerHint) | 31 Qt.X11BypassWindowManagerHint) |
30 | 32 |
31 self.__timer = QTimer() | 33 self.__timer = QTimer() |