from gi.repository import GObject, Peas, RB class WebStatusPlugin(GObject.Object, Peas.Activatable): __gtype_name = 'WebStatusPlugin' object = GObject.property(type=GObject.Object) def __init__(self): super(WebStatusPlugin, self).__init__() def do_activate(self): print("activating sample python plugin") def do_deactivate(self): print("deactivating sample python plugin")