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

How to define the action the side-buttons of a plasmoid?

Tags: None
(comma "," separated)
User avatar
lamda9
Registered Member
Posts
9
Karma
0
OS
I am writing a plasmoid in python and want to do something when the user clicked the "Refresh" button in the sliding-out side-panel (which also contains the Resize and the Configuration buttons). What's the API I should use?
User avatar
giucam
KDE Developer
Posts
62
Karma
1
OS
which would the "refresh" button be?
anyway unfortunately you can't. the applet handle it's all internal to plasma and it doesn't expose an API.
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS
Are you the same one who asked this in the mailing list?


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
lamda9
Registered Member
Posts
9
Karma
0
OS
Yes, I mistook the "rotate" button with a "refresh" button.
Thanks very much :)
TheBlackCat wrote:Are you the same one who asked this in the mailing list?
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
In newer versions there is a button on the handle that you can associate with an action, e.g. in Folder View it opens the folder in a file manager. Unfortunately I don't know how it works, but maybe you've got an answer already?


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
lamda9
Registered Member
Posts
9
Karma
0
OS
Sebastian Kügler <sebas@kde.org> from the mailing list gave me the hint:

You're looking for Plasma::Applet::setAssociatedApplication(), see

http://api.kde.org/4.x-api/kdelibs-apid ... bb5147b669


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft