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

[BUG] Error when pressing any key on a keyboard in stats window #203

Open
geochip opened this issue Nov 7, 2023 · 0 comments
Open

[BUG] Error when pressing any key on a keyboard in stats window #203

geochip opened this issue Nov 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@geochip
Copy link

geochip commented Nov 7, 2023

Describe the bug
When in the Kanji stats window, pressing any key on the keyboard triggers an Error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Kanji' -> 'Stats'
  2. Press any key on the keyboard, for example, F11.
  3. See error

Expected behavior
When pressed F11, the window is supposed to enter fullscreen mode. When pressed any other key, nothing happens

Desktop (please complete the following information):

  • OS and Version: Arch Linux. Linux-6.5.9-arch2-1-x86_64-with-glibc2.38
  • Anki Version: Anki 23.10 (51a10f0) Python 3.11.5 Qt 6.6.0 PyQt 6.6.0

Additional context
The problem is, probably, connected to PyQt6 changing API for enums, which are now scoped.
In addon/stats_window.py Qt.Key_F11 becomes Qt.Key.Key_F11.
Making this change locally on my sistem fixes the issue.
Here is also a commit with similar changes in the anki repo: ankitects/anki@a7812de

Screenshots
2023-11-07_06-29-06-29-58

@geochip geochip added the bug Something isn't working label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant