Giter VIP home page Giter VIP logo

Comments (1)

khonkhortisan avatar khonkhortisan commented on August 15, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.