I'm attempting a port of the abandoned Gedit plugin codecompletion to Python 3.
In the original code a Python 2 package is called:
import gtksourceview2 as gsv
and it is then inherited by a class to, presumably, perform completion:
class JSONProvider(gobject.GObject, gsv.CompletionProvider):
MARK_NAME = 'JSONProviderCompletionMark'
def __init__(self, plugin):
gobject.GObject.__init__(self)
...
I've never used GtkSourceView or its completion functionality, so it's unclear what the inheritance is fulfilling. What is the equivalent gtksourceview2
(or 3) module in Python 3?
The equivalent would be
from gi.repository import GtkSource