Skip to content

Commit

Permalink
Fixed more scoped enums
Browse files Browse the repository at this point in the history
  • Loading branch information
jrom99 committed Sep 24, 2024
1 parent bcb3f39 commit 5e022af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/startup/lightingsettings_gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion modules/pmg_qt/TextEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e022af

Please sign in to comment.