pyxfce - systemtray.SystemTray

Aaron aaronf0 at gmail.com
Fri Apr 21 21:21:16 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
>
yes, thats the code im using. im still learning python, so is there
any way possible to change the background colour? it changes with the
gtk theme, but i coundnt seem to find a way to change the gtkrc file
to change the colour of it. any tips?


More information about the Xfce4-dev mailing list