This cures the following error message when trying to run Flashgrid in the latest version of Anki.
Debug info:
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2021-01-09 12:07:42
Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 37, in cmd
File "aqt\webview.py", line 123, in _onCmd
File "aqt\webview.py", line 547, in _onBridgeCmd
File "aqt\overview.py", line 67, in _linkHandler
File "aqt\main.py", line 661, in moveToState
File "aqt\main.py", line 683, in _reviewState
File "aqt\reviewer.py", line 65, in show
File "aqt\reviewer.py", line 118, in nextCard
File "aqt\reviewer.py", line 208, in _showQuestion
File "aqt\gui_hooks.py", line 2176, in call
File "anki\hooks.py", line 583, in runHook
File "C:\Users\nicho\AppData\Roaming\Anki2\addons21\flashgrid\reviewerMonkey.py", line 60, in onShowQuestion
doGrid()
File "C:\Users\nicho\AppData\Roaming\Anki2\addons21\flashgrid\reviewerMonkey.py", line 51, in doGrid
w.setGeo()
File "C:\Users\nicho\AppData\Roaming\Anki2\addons21\flashgrid\main.py", line 108, in setGeo
screen = QDesktopWidget().screenGeometry()
NameError: name 'QDesktopWidget' is not defined
This cures the following error message when trying to run Flashgrid in the latest version of Anki.
Debug info: Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=1 Add-ons, last update check: 2021-01-09 12:07:42
Caught exception: Traceback (most recent call last): File "aqt\webview.py", line 37, in cmd File "aqt\webview.py", line 123, in _onCmd File "aqt\webview.py", line 547, in _onBridgeCmd File "aqt\overview.py", line 67, in _linkHandler File "aqt\main.py", line 661, in moveToState File "aqt\main.py", line 683, in _reviewState File "aqt\reviewer.py", line 65, in show File "aqt\reviewer.py", line 118, in nextCard File "aqt\reviewer.py", line 208, in _showQuestion File "aqt\gui_hooks.py", line 2176, in call File "anki\hooks.py", line 583, in runHook File "C:\Users\nicho\AppData\Roaming\Anki2\addons21\flashgrid\reviewerMonkey.py", line 60, in onShowQuestion doGrid() File "C:\Users\nicho\AppData\Roaming\Anki2\addons21\flashgrid\reviewerMonkey.py", line 51, in doGrid w.setGeo() File "C:\Users\nicho\AppData\Roaming\Anki2\addons21\flashgrid\main.py", line 108, in setGeo screen = QDesktopWidget().screenGeometry() NameError: name 'QDesktopWidget' is not defined