xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #280: eggtray.py

File eggtray.py, 253 bytes (added by Antoine Martin, 9 years ago)

simple test tray code using egg.trayicon

Line 
1#! /usr/bin/python
2import pygtk,os
3pygtk.require("2.0")
4import gtk
5import egg.trayicon
6t = egg.trayicon.TrayIcon("CPUTemp")
7cpu_temp=os.popen('sensors | grep "temp1:" | cut -d+ -f2 | cut -c1-2').read()
8t.add(gtk.Label(cpu_temp))
9t.show_all()
10gtk.main()