system tray or notification area in python

Daniel Fetchinson fetchinson at googlemail.com
Wed Oct 17 07:49:24 EDT 2012


>>>>>> So I thought I would write a brand new stand alone system tray or
>>>>>> notification area in python. I guess I need to use gtk bindings or
>>>>>> some such but don't really know what my options are.
>>>>>>
>>>>>> Where would I start something like this?
>>>>>> Any pointers would be greatly appreciated!
>>>>>>
>>>>> Why not look at the source code of the current app your using to get
>>>>> an idea how that application accomplishes said task?
>>>>
>>>> I actually did that already it's using the C bindings of gtk.
>>>
>>> I think you are mistaken - if its this one:
>>> 	http://stalonetray.sourceforge.net/
>>
>> Yes, that's it.
>>
>>> I had a quick look into the sources, it does not use gtk at all, it uses
>>> low level X11 calls. Programming in this way is very tedious.
>>
>> Right, but nobody wrote Xlib bindings for python?
>
> Erm, Google is your friend: "python xlib" turns up
>
> 	http://python-xlib.sourceforge.net/
>
> as well as
>
> 	http://plwm.sourceforge.net/
>
> which is pretty close to what you are trying to do.

Great, thanks a lot!

>>> Don't take it wrong, but when you write that you have no experience with
>>> GUI programming, I'd start another projet first - I think you will have
>>> a tough way to succeed with this project.
>>
>> I certainly wouldn't start with Xlib in C, but if python bindings
>> would be available that would make life much easier.
>>
>
> Everything is easier in python:) because usually python libs are
> designed with OO and ease of use in mind. Beware that this will be much
> tougher than using gtk&friends.

I guess so :) But it's a good excuse to get familiar with X :)

Cheers,
Daniel


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


-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown



More information about the Python-list mailing list