This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Python : show popup palette action

Tags: None
(comma "," separated)
qeshi
Registered Member
Posts
2
Karma
0

Python : show popup palette action

Sat Aug 11, 2018 6:05 pm
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?
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
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.
qeshi
Registered Member
Posts
2
Karma
0
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?
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
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.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]