![]() Registered Member ![]()
|
Hi!
I'm trying to make my first python script for Krita and I'm trying the show the popup palette. I thought I could use the actions on Krita.instance().actions but I couldn't find anything related to the popup palette in there. So I looked around in the source code but the only thing i managed to come up with is the KisInputProfileManager that actions.append(new KisShowPaletteAction());. But i don't understand how to reach this code from Python or how to get to the KisShowPaletteAction so I can trigger it. Any suggestions? |
![]() KDE Developer ![]()
|
Hm... The popup palette is a canvas action, not a shortcut action, so that's going to be tricky, as far as I can tell without digging into the source right now.
|
![]() Registered Member ![]()
|
Ok. thank you for the answer!
I tried to accomplish this again but I failed. I don't have that much experience with C++ but I know Java and ActionScript 3 so I can understand most of the Krita source code. I thought Qt 5 seemed kind of familiar, but I need to read up on how signals and slots work. Do you think it would be easier to make my own custom docker, and just recreate the functionality I need in Python? I already started to build one here: https://github.com/qeshi/henriks-onscre ... ut-buttons Is there any official place where you can share your Python plugins for Krita? |
![]() KDE Developer ![]()
|
We don't have an official place to share python scripts yet. I need to ask the admins at share.krita.org to create a scripts category.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]