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

Need help with Plasma::Containment in Python

Tags: None
(comma "," separated)
User avatar
LBL
Registered Member
Posts
131
Karma
0
OS
Hi,

I'm trying to build a plasmoid in Python for my Dashboard wich has TabBar like the Comic Plasmoid has (if activated) and each Tab is a Containment containing a different set of applets. Like pages in the plasma-netbook but for my Dashboard.

I'm using a separate Dashboard as I like my Desktop being nice and clean (with a nice wallpaper).

I'm completly new to KDE/Plasma programming but have build simple applications for myself with C++/QT for 2 years now.

How far am I?:
  • I've got the tabs (2) - hardcoded but ok for trying
  • each tab is a containment - hardcoded, with Plasma::Containment()
  • it's executable

What I want to know/do next?:
  • Adding applets via drag'n'drop
  • positions of the applets und sizes should be stored in plasma-desktop-appletsrc or where it should be

My first question: how do I add applets? do I have to accept a MIME drop (I don't know how to call it but I hope yout understand the meaning) and add the applet myself? What about the configuration file? how to access it and store data or is this done automatically?

Greets LBL


42: There is no other answer. There are only different ways to express it.
0x2A
0o52
0b101010
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Given the complexity of this topic, I would recommend asking on plasma-devel@kde.org

I would think that Plasma::Containment and Plasma::Applet would handle saving the needed size configurations, etc. though.


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


Bookmarks



Who is online

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