diff --git a/data/startup/lightingsettings_gui/main.py b/data/startup/lightingsettings_gui/main.py index e003f1c6d..72a0ced5f 100644 --- a/data/startup/lightingsettings_gui/main.py +++ b/data/startup/lightingsettings_gui/main.py @@ -13,7 +13,7 @@ class SettingSlider(QtWidgets.QSlider): def __init__(self, parent, setting, min_val, max_val, res, line_edit): - super(SettingSlider, self).__init__(Qt.Horizontal, parent) + super(SettingSlider, self).__init__(Qt.Orientation.Horizontal, parent) self.setting = setting self.min_val = float(min_val) @@ -211,7 +211,7 @@ def create_dialog(): form_layout = QtWidgets.QFormLayout() form_layout.setContentsMargins(0, 0, 0, 0) form_layout.setVerticalSpacing(0) - form_layout.setLabelAlignment(Qt.AlignLeft) + form_layout.setLabelAlignment(Qt.AlignmentFlag.AlignLeft) layout.addLayout(form_layout) for i, item in enumerate(sliders, 1): diff --git a/modules/pmg_qt/TextEditor.py b/modules/pmg_qt/TextEditor.py index e18acdf57..d11f17aef 100644 --- a/modules/pmg_qt/TextEditor.py +++ b/modules/pmg_qt/TextEditor.py @@ -170,7 +170,7 @@ def _edit_pymolrc(app, _list=()): pymolrc, ok = QtWidgets.QInputDialog.getText( None, 'Create new pymolrc?', 'Filename of new pymolrc', - QtWidgets.QLineEdit.Normal, pymolrc) + QtWidgets.QLineEdit.EchoMode.Normal, pymolrc) if not ok: return