Bug 477648 - Python API Active Tool request
Summary: Python API Active Tool request
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: Scripting (other bugs)
Version First Reported In: 5.2.0
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-28 02:28 UTC by keyth_qcfx2
Modified: 2025-10-28 04:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description keyth_qcfx2 2023-11-28 02:28:39 UTC
A python API question to know which tool is active.
could be something like :

Krita.instance().activeTool()

or in alternative to be able to do:

- Krita.instance().tools() : giving the list of all tools available
- boolean = Krita.instance().action( "InteractionTool" ).isChecked() : to know if a given tool is active
Comment 1 cromachina 2025-10-28 04:49:54 UTC
I think this would be useful too, along with setting the tool and subtool. Then users could more easily create different kinds of input strategies like temporary shortcuts or shortcuts that when pressed twice in a row return to the previous tool (like how Paint Tool SAI can behave).