rox.applet | index |
To create a panel applet for ROX-Filer, you should add a file called
AppletRun to your application. This is run when your applet it dragged onto
a panel. It works like the usual AppRun, except that it is passed the XID of
the GtkSocket widget that ROX-Filer creates for you on the panel.
A sample AppletRun might look like this:
#!/usr/bin/env python
import findrox; findrox.version(1, 9, 12)
import rox
import sys
from rox import applet, g
plug = applet.Applet(sys.argv[1])
label = g.Label('Hello\nWorld!')
plug.add(label)
plug.show_all()
rox.mainloop()
Classes | ||||||||||
|