473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

KPanelApplet using Python

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
-----------------------------------------------
My Webpage : http://www.ae.iitm.ac.in/~ae03b032
-----------------------------------------------
Feb 24 '06 #1
5 1391
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....f32dcd5e6f96ae

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

Feb 24 '06 #2
Another way to do it is to use ksystraycmd which is included with your
KDE. Some usage info is covered in my tutorial:
http://xmelegance.org/customising-wi...behaviour.html

Rich.

Feb 24 '06 #3
Varun Hiremath wrote:
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

Feb 24 '06 #4
On Fri, 24 Feb, 2006 at 05:51:55AM -0800, ri*********@gmail.com 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
-----------------------------------------------
My Webpage : http://www.ae.iitm.ac.in/~ae03b032
-----------------------------------------------
Feb 24 '06 #5
On Fri, 24 Feb, 2006 at 09:55:59AM -0800, David Boddie wrote:
Varun Hiremath wrote:
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


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


--
http://mail.python.org/mailman/listinfo/python-list


--
-----------------------------------------------
Varun Hiremath
461, Jamuna Hostel
IIT Madras,
Chennai - 600 036
mob : +919840299732
-----------------------------------------------
My Webpage : http://www.ae.iitm.ac.in/~ae03b032
-----------------------------------------------
Feb 24 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.