Hello everybody! I need some advice. I am trying to solve the following problem: there is a running LEO session with an outline open. Can I connect to this session from outside LEO and send commands to do something without closing the outline? For example, to write a piece of information into a node's body, to find a node, or to move it? This would be a kind of collaborative editing, so collisions are possible when I am working with this outline manually and an external command is received. But would it be okay, for example, to stack those external commands and wait until idle time? Or is there a better way to do it?
--
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 leo-editor+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS2ZU8-WxrXMeOU4N59xSJ3z1_fCwrwtXKo%3DKMzQvWppiw%40mail.gmail.com.
Edward, thank you for your response! I've tried leoserver - it is working perfectly, still, it seems to run a separate instance of LEO in a headless mode (gui='nullGui') - and I can't find a way to attach it to a running LEO session (native QT GUI) to view the exact same live state of the same outline. I need remote access to an outline while it is opened locally in the regular LEO. Is it possible?
if self.guiName == 'nullGui':
...
else:
assert False, f"leoBridge.py: unsupported gui: {self.guiName}
--
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 leo-editor+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/leo-editor/1913b3f9-e9cd-4672-bd3a-e465ac31e59en%40googlegroups.com.
I tried to modify the startup code so leoserver could open a Qt GUI instance instead of `nullGui`. I attempted to pass the 'qt' setting to it, which is finally passed to `leoBridge`, but the flow hits the `createGui(self)` method. It appears `leoBridge` currently asserts that only `nullGui` is supported:
The issue appears more complex, as the code still initializes 'nullGui' on the subsequent line.
I attempted to invoke the Qt GUI explicitly using the following code:
elif self.guiName in ('qt'):g.app.createQtGui('', verbose=False)
The window appeared, but it was empty. I'll try to track this further...
--
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 leo-editor+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/leo-editor/c53f9cc6-0672-48f3-8f51-b8943c865650n%40googlegroups.com.
The issue appears more complex, as the code still initializes 'nullGui' on the subsequent line.
I attempted to invoke the Qt GUI explicitly using the following code:
elif self.guiName in ('qt'):g.app.createQtGui('', verbose=False)The window appeared, but it was empty. I'll try to track this further...
--
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 leo-editor+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/leo-editor/5ce4dc94-b533-4c17-9cab-07545d442ce2n%40googlegroups.com.
I hope I am not hijacking this thread too much ... some version of this topic is of interest to me and I have what may be a similar use case...