KPanelApplet using Python

V

Varun Hiremath

Hi,
I was wondering if there is any way to make KDE PanelApplets using Python. I have made a small window using Qt, kdeui nad kdecore libs. Now I want to add it to the KDE kicker. Can I get any help regarding this matter.

Thank you.

--
-----------------------------------------------
Varun Hiremath
461, Jamuna Hostel
IIT Madras,
Chennai - 600 036
mob : +919840299732
 
W

wjzrules

I am not a Python expert, but I am using KDE on my workstation at home
and a big Python fan ;)

A couple of days ago I was thinking the same and found how to create
systray apps for Windows!
You can make this kind of apps with wxPython.

When I was at home and behind my KDE desktop I tried the Windows code
and it worked flawlessly in KDE. It was integrating into the kicker
without problems.

This was the thread that helped me out:
http://groups.google.com/group/comp..._frm/thread/2113ca0f132f2f49/96f32dcd5e6f96ae

Try to play with the code and you will see it will work :)
 
V

Varun Hiremath

On Fri, 24 Feb, 2006 at 05:51:55AM -0800, (e-mail address removed) wrote:
I want to make a PanelApplet and not a systray application. I tried KSystemTray and it works flawlessly but I want to add a widget to the taskbar like knews or kweather. I am trying to use the pyKDE's KPanelApplet class but I don't know exactly how to use it. I need some help regarding this.

Thank You

--
-----------------------------------------------
Varun Hiremath
461, Jamuna Hostel
IIT Madras,
Chennai - 600 036
mob : +919840299732
 
D

David Boddie

Varun said:
I was wondering if there is any way to make KDE PanelApplets
using Python. I have made a small window using Qt, kdeui nad
kdecore libs. Now I want to add it to the KDE kicker. Can I
get any help regarding this matter.

The other responses in this thread have covered solutions that use
the system tray, and you may want to try something like that with
the KSystemTray class in kdeui. It's available in PyKDE, so you
shouldn't have any trouble adding new items to kicker that way.

However, you asked specifically about Panel Applets. Unfortunately,
they are a lot more difficult to implement in Python because you
need to write a library in C++ to load them. Some of us in the
PyQt/PyKDE community did some work towards that, and had working
applets but, as far as I know, they don't work with recent releases.

You might get some additional help or advice about this if you try
mailing the PyKDE list:

http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Good luck!

David
 
V

Varun Hiremath

The other responses in this thread have covered solutions that use
the system tray, and you may want to try something like that with
the KSystemTray class in kdeui. It's available in PyKDE, so you
shouldn't have any trouble adding new items to kicker that way.

However, you asked specifically about Panel Applets. Unfortunately,
they are a lot more difficult to implement in Python because you
need to write a library in C++ to load them. Some of us in the
PyQt/PyKDE community did some work towards that, and had working
applets but, as far as I know, they don't work with recent releases.

You might get some additional help or advice about this if you try
mailing the PyKDE list:

http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Good luck!

David

Hi,
Actually I want to fetch some text from a HTML Page and then display it using KPanelApplet.I am using BeautifulSoup for Parsing the HTML Page which I can do easily in Python . Now I don't want to switch to C++ because Parsing there will be tough. Can you suggest me some other way to do this.

Thank You


--
-----------------------------------------------
Varun Hiremath
461, Jamuna Hostel
IIT Madras,
Chennai - 600 036
mob : +919840299732
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,285
Messages
2,571,416
Members
48,107
Latest member
AmeliaAmad

Latest Threads

Top