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

``

gtk.Plug(gtk.Window)
  Applet

class Applet(gtk.Plug)
`` | `When your AppletRun file is used, create an Applet widget with the argument passed to AppletRun. Show the widget to make it appear in the panel. toplevel_* functions are called automatically.`

Methods defined here:

__init__(self, xid)
  `xid is the sys.argv[1] passed to AppletRun.`

position_menu(self, menu)
  `Use this as the third argument to Menu.popup().`