Skip to content

Instantly share code, notes, and snippets.

@palfrey
Created February 28, 2012 23:06
Show Gist options
  • Save palfrey/1935898 to your computer and use it in GitHub Desktop.
Save palfrey/1935898 to your computer and use it in GitHub Desktop.
Example applet stub
try:
from gi.repository import Gtk
except ImportError:
import gtk as Gtk
def applet_factory(applet, iid, data = None):
button = Gtk.Button("It works!")
applet.add(button)
applet.show_all()
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment