diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/Graphics/UMLSceneSizeDialog.py --- a/src/eric7/Graphics/UMLSceneSizeDialog.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/Graphics/UMLSceneSizeDialog.py Wed Jul 13 14:55:47 2022 +0200 @@ -16,10 +16,11 @@ """ Class implementing a dialog to set the scene sizes. """ + def __init__(self, w, h, minW, minH, parent=None, name=None): """ Constructor - + @param w current width of scene @type int @param h current height of scene @@ -37,21 +38,21 @@ if name: self.setObjectName(name) self.setupUi(self) - + self.widthSpinBox.setValue(w) self.heightSpinBox.setValue(h) self.widthSpinBox.setMinimum(minW) self.heightSpinBox.setMinimum(minH) self.widthSpinBox.selectAll() self.widthSpinBox.setFocus() - + msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height()) - + def getData(self): """ Public method to retrieve the entered data. - + @return tuple giving the selected width and height @rtype tuple of (int, int) """