class Bridge(QtCore.QObject): def __init__(self): self.__document = Document('') def document_changed(self, position, text, length): self.__document.add_content(position, text, length) return self.__document.get_decorated()
def __init__(self): self.__document = Document('')