![]() Refer to the following list to know which interface should be used and when: These define the entry points in your code.Īll extension points will have the defined gedit object as a property.Įxample: Extension point from gedit.AppActivatable will have app property and hence would be able to use Gedit.App API. Each extension is derived from GObject.Object and must implement one of the interfaces that gedit provides for the extension points. This section will try to explain how gedit plugins work.Ī Python plugin will be able to have one or more extensions. It can also be a python package.īoth files are placed in either /usr/lib/gedit/plugins/ (system-wide) or ~/.local/share/gedit/plugins/ (single-user). It tells gedit where the plugin is found. This is a comprehensive guide on writing plugins for gedit in Python3.
0 Comments
Leave a Reply. |