eric6/Graphics/UMLSceneSizeDialog.py

changeset 8289
871b40c5a77a
parent 8218
7c09585bd960
equal deleted inserted replaced
8288:809d5d5ac2ba 8289:871b40c5a77a
18 """ 18 """
19 def __init__(self, w, h, minW, minH, parent=None, name=None): 19 def __init__(self, w, h, minW, minH, parent=None, name=None):
20 """ 20 """
21 Constructor 21 Constructor
22 22
23 @param w current width of scene (integer) 23 @param w current width of scene
24 @param h current height of scene (integer) 24 @type int
25 @param minW minimum width allowed (integer) 25 @param h current height of scene
26 @param minH minimum height allowed (integer) 26 @type int
27 @param parent parent widget of this dialog (QWidget) 27 @param minW minimum width allowed
28 @param name name of this widget (string) 28 @type int
29 @param minH minimum height allowed
30 @type int
31 @param parent parent widget of this dialog
32 @type QWidget
33 @param name name of this widget
34 @type str
29 """ 35 """
30 super().__init__(parent) 36 super().__init__(parent)
31 if name: 37 if name:
32 self.setObjectName(name) 38 self.setObjectName(name)
33 self.setupUi(self) 39 self.setupUi(self)
45 def getData(self): 51 def getData(self):
46 """ 52 """
47 Public method to retrieve the entered data. 53 Public method to retrieve the entered data.
48 54
49 @return tuple giving the selected width and height 55 @return tuple giving the selected width and height
50 (integer, integer) 56 @rtype tuple of (int, int)
51 """ 57 """
52 return (self.widthSpinBox.value(), self.heightSpinBox.value()) 58 return (self.widthSpinBox.value(), self.heightSpinBox.value())

eric ide

mercurial