The leo-editor-contrib branch now contains neovim.leo, a study outline for the python-client code <https://github.com/neovim/python-client>.
This is elegant code, surely the simplest code that could possibly work. The use of functools.partial <https://docs.python.org/2/library/functools.html> is particularly nifty. The following code works, on both Linux and Windows, but only partially: import os import sys import PyQt5.QtWidgets as QtWidgets from neovim import attach class NeovimWindow(QtWidgets.QMainWindow): def __init__(self, nvim): super().__init__() self.nvim = nvim app = QtWidgets.QApplication(sys.argv) nvim = attach('child', argv=['nvim', '--embed']) window = NeovimWindow(nvim) window.show() The call to attach returns the expected result. However, nvim does not appear in the window. How could it? attach knows nothing of the window! It would take special magic indeed for this to work. It's quite possible that only a few more lines of code are needed, but I'll have to read the docs to discover what they might be... Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
