Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1788670778\config\config_ui.py:78:'Qt.Horizontal' will stop working. Please use 'Qt.Orientation.Horizontal' instead. #170

Closed
khonkhortisan opened this issue Sep 15, 2022 · 0 comments · Fixed by #173
Labels
compatibility Compatibility with latest Anki

Comments

@khonkhortisan
Copy link

1788670778\config\config_ui.py:78:'Qt.Horizontal' will stop working. Please use 'Qt.Orientation.Horizontal' instead.
1788670778\config\config_ui.py:79:'QDialogButtonBox.Cancel' will stop working. Please use 'QDialogButtonBox.StandardButton.Cancel' instead.
1788670778\config\config_ui.py:79:'QDialogButtonBox.Ok' will stop working. Please use 'QDialogButtonBox.StandardButton.Ok' instead.

self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)

  • OS: Windows 10
  • Anki Version 2.1.55 (35431c59)⁩
aplaice added a commit to aplaice/CrowdAnki that referenced this issue Nov 6, 2022
Fix Stvad#170.

We're slavishly copying the convention used by anki in
`qt/aqt/forms/` (up to the presence of the type: ignore comment).

The old qt5 files are moved from *_ui.py to *_ui_qt5.py.

The new qt6 files are *_ui_qt6.py.

generate_ui.sh was run from within the pipenv (pipenv shell).  I'm not
yet sure whether to change the script to have `pipenv run ...` at the
start of all the lines, or to update CONTRIBUTING.md.
aplaice added a commit to aplaice/CrowdAnki that referenced this issue Nov 6, 2022
Fix Stvad#170.

We're slavishly copying the convention used by anki in
`qt/aqt/forms/` (up to the presence of the type: ignore comment).

The old qt5 files are moved from *_ui.py to *_ui_qt5.py.

The new qt6 files are *_ui_qt6.py.

generate_ui.sh was run from within the pipenv (pipenv shell).  I'm not
yet sure whether to change the script to have `pipenv run ...` at the
start of all the lines, or to update CONTRIBUTING.md.
aplaice added a commit to aplaice/CrowdAnki that referenced this issue Nov 7, 2022
Fix Stvad#170.

We're slavishly copying the convention used by anki in
`qt/aqt/forms/` (up to the presence of the type: ignore comment).

The old qt5 files are moved from *_ui.py to *_ui_qt5.py.

The new qt6 files are *_ui_qt6.py.

generate_ui.sh was run from within the pipenv (pipenv shell).  I'm not
yet sure whether to change the script to have `pipenv run ...` at the
start of all the lines, or to update CONTRIBUTING.md.
@aplaice aplaice added the compatibility Compatibility with latest Anki label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility with latest Anki
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants