On Wednesday, April 8, 2020 at 11:37:18 AM UTC-4, Matt Wilkie wrote:
>
> Thanks for the extra detail Thomas. 
>
> Something like this function in runLeo.py 
> <https://github.com/leo-editor/leo-editor/blob/devel/leo/core/runLeo.py> 
> to add command line argument might be used to invoke no-docks:
>
> def run_console(*args, **keywords): 
>    """Initialize and run Leo in console mode gui""" 
>    import sys 
>    sys.argv.append('--gui=console') 
>    run(*args, **keywords)
>

I wouldn't be using --gui=console to use docks, but this worked like a 
charm (no def: needed) -

import leo 

import sys

sys.argv.append('--use-docks')

leo.run()


Then CTRL-ENTER in Pyzo.


Thanks for the idea!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/7dfda76c-feba-4915-8a5e-d712ac321173%40googlegroups.com.

Reply via email to