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

Newbie asking for directions

Tags: None
(comma "," separated)
nekstedt
Registered Member
Posts
3
Karma
0

Newbie asking for directions

Sat Aug 17, 2013 3:33 pm
Hi all,

I'm posting my first post in these forums just to make sure I'm in the right place.
I got an idea for a project, trying to develop my very first KDE plasmoid in python, and I got
a few questions. I just want to make sure this is the proper forum to post to for code
directions concerning coding a KDE plasmoid in python or perhaps someone may be kind
enough to point me to the best forum or list elsewhere.

Thanks
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Newbie asking for directions

Sat Aug 17, 2013 8:58 pm
Questions concerning Python applets for Plasma Desktop may certainly be posted here.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
nekstedt
Registered Member
Posts
3
Karma
0

Re: Newbie asking for directions

Mon Aug 19, 2013 8:00 pm
Great, thanks!

Since I'm a totally noob when it comes to developing, I'm not sure
Python is the way to go. I've benn glancing at
http://techbase.kde.org/Development/Tut ... Plasma#QML

Reading the second paragraph on that page had me wondering
if I shouldn't use QML for the GUI (which in fact solved my initial
Python problem, placing an icon in the toolip) which makes GUI
design fast and efortless. However it's my understanding that I
need to use something other than QML for the actual program
to be coded in. Can I use Python for this? From what I've read
on other sites it appears Python has it's limitations when it
comes to handling signals.

What I want to achieve is a basic plasmoid MailBoxBiff, sitting
in the system tray, only to pop up whenever a mail is delivered to
my local mailbox. Once that's done I can enhance it to actually
work like a KDE wrapper for the 'mail' command.

Perhaps this can all be achieved with Python and QML?
Maybe what I need is a is a plasmoid in QML and a Data Engine
in Python?

I'm deeply grateful for all tips and pointers.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Newbie asking for directions

Wed Aug 21, 2013 9:37 am
From what I recall, applet authors are now recommended to use QML with the Javascript bindings, as those are the most reliable and safe (it is quite difficult for a javascript applet to crash Plasma, in comparison to a Python, C++, etc applet). You can use Python for this if you wish though - you will need to ensure the Python bindings for KDE and Plasma are installed however.

In regards to questions concerning how to develop the applet such as best practice on how to structure it, I would recommend asking on plasma-devel@kde.org - as this has been in flux in the past.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
nekstedt
Registered Member
Posts
3
Karma
0

Re: Newbie asking for directions

Wed Aug 21, 2013 2:12 pm
Thanks so much for your input, it's truly appreciated.

I'll follow up with any further questions to the
plasma-devel@kde.org group.

Again thanks!!


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]