From 5e022afb670c17197778188236894072ab3d1098 Mon Sep 17 00:00:00 2001 From: Junior Martins Date: Tue, 24 Sep 2024 15:31:01 -0300 Subject: [PATCH] Fixed more scoped enums --- data/startup/lightingsettings_gui/main.py | 4 ++-- modules/pmg_qt/TextEditor.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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