diff --git a/src/calibre/gui2/preferences/server.py b/src/calibre/gui2/preferences/server.py index 7cd640b98e..bb5b6c5387 100644 --- a/src/calibre/gui2/preferences/server.py +++ b/src/calibre/gui2/preferences/server.py @@ -12,7 +12,7 @@ from PyQt5.Qt import ( QCheckBox, QComboBox, QDialog, QDialogButtonBox, QDoubleSpinBox, QFormLayout, - QFrame, QHBoxLayout, QIcon, QLabel, QLineEdit, QListWidget, QPlainTextEdit, + QFrame, QHBoxLayout, QIcon, QLabel, QLineEdit, QListWidget, QPlainTextEdit, QLayout, QPushButton, QScrollArea, QSize, QSizePolicy, QSpinBox, Qt, QTabWidget, QTimer, QToolButton, QUrl, QVBoxLayout, QWidget, pyqtSignal ) @@ -539,7 +539,7 @@ def __init__(self, name, is_checked=False, path='', restriction='', parent=None, self.name = name self.enable_on_checked = enable_on_checked self.l = l = QVBoxLayout(self) - l.setSizeConstraint(l.SetMinAndMaxSize) + l.setSizeConstraint(QLayout.SizeConstraint.SetMinAndMaxSize) if not is_first: self.border = b = QFrame(self) b.setFrameStyle(QFrame.Shape.HLine)