Python Plugin Developer Tools

I know I said no more new features for a bit, but one more for the road since it would be weird for a Krita Python Developer Tools not to actually have any Python API itself in there.

So I quickly added the Python API. It would probably need to be revised to be better like pulling descriptions from git, code completion in console and etc. But for now it still better than nothing.

Edit: So I added an AutoComplete generator, so one can do:

from typing import TYPE_CHECKING
if TYPE_CHECKING:
    from .PyKrita import *
else:
    from krita import *

And have access to both autocomplete and documentation directly inside their IDE. That said, I can’t seem to test it :confused: KDevelop isn’t taking forward declarations of annotations, and VSCode isn’t working for autocomplete to begin with for anything.

So anyone uses an IDE that has working autocomplete and give it a shot?

2 Likes