Source

anjuta-pyloader / sample / anjuta-sample-python.py

Full commit
from gi.repository import Anjuta

class SamplePythonPlugin(Anjuta.Plugin):
	__gtype_name__ = "SamplePythonPlugin"
	def __init__(self):
		print "Sample Python: Initialize plugin"
		super(SamplePythonPlugin, self).__init__()

	def do_activate(self):
		print "Sample Python: Activating plugin..."
		status = self.shell.get_status ()
		status.set_title ("Sample python plugin loaded")

	def do_deactivate(self):
		print "Sample Python: Deactivating plugin..."