Friday, May 19, 2006

how to write a system tray application?

The system tray is a cross-desktop method of notifying the user. It will be very usefull for user. Suppose if you have mailclient[Kmail] and if it is in system tray then whenever new mail will come, it will pop up a new windows with notification of new mail. But question is how to write these kind of application? Well i was searching internet for document. Yesterday i got one document from redhat site . It is in perl language.Search the document
1.Your system should have perl and gtk 2.0.
2. We need two library called
Just Download this two rpm and installl with --nodeps option like
suman@>rpm -ivh gnome-python2-extras-2.10.0-6.i386.rpm gnome-python2-libegg-2.10.0-2.1.i386.rpm --nodeps
Open a vi editor with file name
#! /usr/bin/python
import gtk
import egg.trayicon
t = egg.trayicon.TrayIcon("MyFirstTrayIcon")
Copy this code to the file. And run as suman> python
Thats's all !!! A "Test" system tray icon will be shown in your desktop system tray.

After long time back

Oh! I am writing my blog after 13 days. I went to attend my sister marraige. I couldn't get time to write. Well after comming back to my office, I started coustomizing the Open Source ERP product called Compiere . I successfully made some small changes with modify the source code.

Open Source News:
Okippi is the successor to Blue Security's Blue forge project..Now it is started...