gedit-plugin

gedit plugin error - plugin loader 'python3' was not found

拈花ヽ惹草 提交于 2019-12-23 08:33:57
问题 I tried to add some plugins in gedit 3.10.4 on ubuntu 14.04LTS and some errors occured when I try to activate those plugins in gedit: (gedit:20686): libpeas-WARNING **: Error initializing Python Plugin Loader: PyGObject initialization failed ImportError: could not import gobject (error was: ImportError("No module named 'gi'",)) (gedit:20686): libpeas-WARNING **: Please check the installation of all the Python related packages required by libpeas and try again (gedit:20686): libpeas-WARNING **

Accel not working in gedit 3 plugin

心已入冬 提交于 2019-12-10 09:39:29
问题 I was trying to write a small plugin for Gedit 3 which uses GObject introspection. The relevant part of code shown below just aims at getting an environment up where I could then fit in the function in the callback for the button. However, the accelerator for the button is not working. What is wrong with this code? I am using the tutorial here and the python documentation for GTK 3 here. Is there any other links that you know of? from gi.repository import Gtk, Gedit, GObject ui_string = """

Accel not working in gedit 3 plugin

萝らか妹 提交于 2019-12-06 00:04:31
I was trying to write a small plugin for Gedit 3 which uses GObject introspection. The relevant part of code shown below just aims at getting an environment up where I could then fit in the function in the callback for the button. However, the accelerator for the button is not working. What is wrong with this code? I am using the tutorial here and the python documentation for GTK 3 here . Is there any other links that you know of? from gi.repository import Gtk, Gedit, GObject ui_string = """<ui> <toolbar name="ToolBar"> <separator /> <toolitem name="Test" action="Test" /> </toolbar> </ui> """