Can anyone help me compile?

All I want to do is a simple modification with reviewer.py.

I need to make it as this:

I want to do this because I want the autoadvance to go on even if the focus is not gained.

Then compile.

Since I am not familiar with compiling (I am a dentist), can anyone help me with this?

I assume you want to leave just

if ( 
    not self.auto_advance_enabled
):

since != self.mw is part of the self.mw.app.focusWidget().window() != self.mw condition

1 Like

You should follow the official docs, see anki/docs/development.md at main · ankitects/anki · GitHub.

If you have any issues here, we need to know more details, such as your operating system, the error you are getting and which building steps you have already done (and which one caused the error).

Edit: You should also consider building the source code for 25.09.2 (see GitHub - ankitects/anki at 25.09.2) instead of the main branch, as the main branch is basically the current dev version that will be released as beta in the future.

1 Like

Hi Anon,

Thanks for your attention. I’ve solved my problem by creating a plugin using monkey patch technique.

If I have enough time, I will publish the plugin on the Anki Plugin platform, since I believe this plugin can be beneficial to others who have similar problem.

From my perspective, combining plugin with Anki monkey patch is enough for me.

1 Like