1 # -*- coding: utf-8 -*- |
1 # -*- coding: utf-8 -*- |
2 |
2 |
3 """ |
3 """ |
4 Module implementing a dialog to enter the icon size. |
4 Module implementing a dialog to enter the icon size. |
5 """ |
5 """ |
|
6 |
|
7 from __future__ import unicode_literals # __IGNORE_WARNING__ |
6 |
8 |
7 from PyQt4.QtGui import QDialog |
9 from PyQt4.QtGui import QDialog |
8 |
10 |
9 from .Ui_IconSizeDialog import Ui_IconSizeDialog |
11 from .Ui_IconSizeDialog import Ui_IconSizeDialog |
10 |
12 |
19 |
21 |
20 @param width width to be set (integer) |
22 @param width width to be set (integer) |
21 @param height height to be set (integer) |
23 @param height height to be set (integer) |
22 @param parent reference to the parent widget (QWidget) |
24 @param parent reference to the parent widget (QWidget) |
23 """ |
25 """ |
24 super().__init__(parent) |
26 super(IconSizeDialog, self).__init__(parent) |
25 self.setupUi(self) |
27 self.setupUi(self) |
26 |
28 |
27 self.widthSpin.setValue(width) |
29 self.widthSpin.setValue(width) |
28 self.heightSpin.setValue(height) |
30 self.heightSpin.setValue(height) |
29 |
31 |