Comments (1)
Remove _3 to get the window to load. (Toggling the checkbox then throws the error below)
Replace editor.redraw() with editor.redraw_everything() to get rid of the second error. (unloads css but not js)
backwards compatibility:
try:
editor.redraw()
except:
editor.redraw_everything()
⋮
try:
editor.pform.verticalLayout_3.addWidget(checkbox)
except:
editor.pform.verticalLayout.addWidget(checkbox)
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-08-31 20:39:51
Caught exception:
Traceback (most recent call last):
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\166455199\__init__.py", line 126, in <lambda>
checkbox.stateChanged.connect(lambda: self.onEnabledPreviewChecked(checkbox, editor))
File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\166455199\__init__.py", line 52, in onEnabledPreviewChecked
editor.redraw()
AttributeError: 'CardLayout' object has no attribute 'redraw'
from anki-content-injector.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anki-content-injector.