src/eric7/IconEditor/IconSizeDialog.py

branch
eric7
changeset 10428
a071d4065202
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10427:3733e2b23cf7 10428:a071d4065202
19 19
20 def __init__(self, width, height, parent=None): 20 def __init__(self, width, height, parent=None):
21 """ 21 """
22 Constructor 22 Constructor
23 23
24 @param width width to be set (integer) 24 @param width width to be set
25 @param height height to be set (integer) 25 @type int
26 @param parent reference to the parent widget (QWidget) 26 @param height height to be set
27 @type int
28 @param parent reference to the parent widget
29 @type QWidget
27 """ 30 """
28 super().__init__(parent) 31 super().__init__(parent)
29 self.setupUi(self) 32 self.setupUi(self)
30 33
31 self.widthSpin.setValue(width) 34 self.widthSpin.setValue(width)
38 41
39 def getData(self): 42 def getData(self):
40 """ 43 """
41 Public method to get the entered data. 44 Public method to get the entered data.
42 45
43 @return tuple with width and height (tuple of two integers) 46 @return tuple with width and height
47 @rtype tuple of (int, int)
44 """ 48 """
45 return self.widthSpin.value(), self.heightSpin.value() 49 return self.widthSpin.value(), self.heightSpin.value()

eric ide

mercurial