pyxfce - systemtray.SystemTray
Danny Milosavljevic
danny.milosavljevic at liwest.at
Fri Apr 21 10:31:40 CEST 2006
Hi,
Am Donnerstag, den 20.04.2006, 19:32 -0400 schrieb Aaron:
> I have some code that makes a system tray, but something i was
> noticing, i can change the colour of it.
>
> aaron at gentoo:: ./deskar [deskar]
> Traceback (most recent call last):
> File "./deskar", line 50, in ?
> map=t.get_colormap()
> AttributeError: 'systemtray.SystemTray' object has no attribute 'get_colormap'
>
> i also cant add it to an event box to change the colour of that
>
> aaron at gentoo:: ./deskar [deskar]
> Traceback (most recent call last):
> File "./deskar", line 57, in ?
> eb.add(t)
> TypeError: GtkContainer.add() argument 1 must be gtk.Widget, not systemtray.Syst
> emTray
>
> was this on purpose, does the system tray just not support this, or
> did no one think about it?
Yes, xfce.gui.SystemTray is not a Widget, but a "controller" class.
Check the examples in the pyxfce svn, i.e.
http://svn.xfce.org/svn/xfce/pyxfce/trunk/examples/systemtray/testtrayarea.py
cheers,
Danny
More information about the Xfce4-dev
mailing list