sudeepdino008
sudeepdino008

Reputation: 3364

plugins for gedit in python

I've been trying to learn to write plugins for gedit 3.x in python and I'm facing a lot of difficulties in it. I want to know whether there are some things you should know beforehand (like PyGTK) to make learning easier or are there some good resources to learn writing plugins for gedit. I've tried https://live.gnome.org/Gedit/PythonPluginHowTo and studying some plugin code like bracket completion. What should be my approach? Any help/tip is appreciated.

Upvotes: 2

Views: 958

Answers (2)

Micah Carrick
Micah Carrick

Reputation: 10197

My tutorial on writing plugins for Gedit 3 should get you up and running.

Gedit 3 uses GTK+ 3 which means that it uses PyGObject not PyGTK. PyGTK was the python bindings for GTK+ 2.

The Python GTK+ 3 Tutorial is a good place to learn the specifics of Python and GTK+ 3 (PyGObject).

Upvotes: 3

mjgpy3
mjgpy3

Reputation: 8947

I would highly suggest checking out the gmate project. It is a suite of plugins for gedit, most of which are built in python. Of course, public repositories on github are open-source and, therefore, you can feel free to use their code if you wish. Perhaps seeing how they did it will provide you with some helpful insight.

Upvotes: 3

Related Questions