--- a/src/eric7/QScintilla/ZoomDialog.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/QScintilla/ZoomDialog.py Wed Jul 13 14:55:47 2022 +0200 @@ -16,10 +16,11 @@ """ Class implementing a dialog to select the zoom scale. """ + def __init__(self, zoom, parent, name=None, modal=False): """ Constructor - + @param zoom zoom factor to show in the spinbox @param parent parent widget of this dialog (QWidget) @param name name of this dialog (string) @@ -30,17 +31,17 @@ self.setObjectName(name) self.setupUi(self) self.setModal(modal) - + self.zoomSpinBox.setValue(zoom) self.zoomSpinBox.selectAll() - + msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height()) - + def getZoomSize(self): """ Public method to retrieve the zoom size. - + @return zoom size (int) """ return self.zoomSpinBox.value()