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

resizeEvent handling in Plasmoid's python binding

Tags: None
(comma "," separated)
User avatar
grissiom
Registered Member
Posts
49
Karma
0
OS
In PyQt4 programming, I can re-implement widget's resizeEvent method to handle resize events. But I this method doesn't work for plasmoid. So how to handle resize event in plasmoid? Thanks in advance.


grissiom, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please check that you are using the correct function signature: http://api.kde.org/4.x-api/kdelibs-apid ... 1242731371

Alternately, it may not be supported:
http://api.kde.org/4.x-api/kdelibs-apid ... cript.html


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
grissiom
Registered Member
Posts
49
Karma
0
OS
Thanks really. But it seems that the plasmoids could only handle resize event in constraintsEvent method. See:
http://api.kde.org/4.x-api/kdelibs-apid ... 1560cda651

When resizing, constraintsEvent is called but resizeEvent is not, even with right signature.


grissiom, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
It appears that you have either:
A) Come across a lacking in the scripting API
B) A bug.

Please ask on the Plasma mailing list ( plasma-devel@kde.org ) for more information.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

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