4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a zoom widget for the status bar. |
7 Module implementing a zoom widget for the status bar. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSlot, pyqtSignal |
12 from PyQt4.QtCore import pyqtSlot, pyqtSignal |
11 from PyQt4.QtGui import QWidget |
13 from PyQt4.QtGui import QWidget |
12 |
14 |
13 from .Ui_E5ZoomWidget import Ui_E5ZoomWidget |
15 from .Ui_E5ZoomWidget import Ui_E5ZoomWidget |
26 @param outPix pixmap for the zoom out button (QPixmap) |
28 @param outPix pixmap for the zoom out button (QPixmap) |
27 @param inPix pixmap for the zoom in button (QPixmap) |
29 @param inPix pixmap for the zoom in button (QPixmap) |
28 @param resetPix pixmap for the zoom reset button (QPixmap) |
30 @param resetPix pixmap for the zoom reset button (QPixmap) |
29 @param parent reference to the parent widget (QWidget) |
31 @param parent reference to the parent widget (QWidget) |
30 """ |
32 """ |
31 super().__init__(parent) |
33 super(E5ZoomWidget, self).__init__(parent) |
32 self.setupUi(self) |
34 self.setupUi(self) |
33 |
35 |
34 self.zoomOutLabel.setPixmap(outPix.scaled(16, 16)) |
36 self.zoomOutLabel.setPixmap(outPix.scaled(16, 16)) |
35 self.zoomInLabel.setPixmap(inPix.scaled(16, 16)) |
37 self.zoomInLabel.setPixmap(inPix.scaled(16, 16)) |
36 self.zoomResetLabel.setPixmap(resetPix.scaled(16, 16)) |
38 self.zoomResetLabel.setPixmap(resetPix.scaled(16, 16)) |