Monday, January 10, 2011

Gedit plugin infrastructure

Gedit plugin infrastructure


Most plugin writers find the way Gedit plugins work counterintuitive at first glance. It's important to read this section carefully. A Python plugin is derived from the gedit.Plugin base class which defines the following functions (which you can override):

  • activate(self, gedit.Window)
  • deactivate(self, gedit.Window)
  • update_ui(self, gedit.Window)