pythonpluginspygtkgedit

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.


Solution

  • 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.