What package do I need to install to develop plugins for gedit?

Posted by Wes on Ask Ubuntu See other posts from Ask Ubuntu or by Wes
Published on 2012-09-08T06:40:50Z Indexed on 2012/09/08 21:49 UTC
Read the original article Hit count: 442

Filed under:
|
|

I'm using Ubuntu 12.04 with python 2.7.3 and PyGObject and I'd like to develop plugins for Gedit in python. I found a simple looking tutorial for this sort of thing here.

According to the tutorial, I need the Gedit module to interact with the plugin interface:

from gi.repository import GObject, Gedit

I keep getting an import error when trying to import the Gedit module. So, my question is: what package do I need to install to get this module?

I've tried: gedit-dev , gedit-plugins

Edit: Here is the full traceback for the above statement:

ERROR:root:Could not find any typelib for Gedit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name Gedit

© Ask Ubuntu or respective owner

Related posts about python

Related posts about gedit