Thanks for testing, and thanks for the report.  The big-tree layout was a 
late addition and it works for me. I haven't tried the outline on Linux, 
yet. I'm puzzled by the error report, though.  It's reporting the wrong 
place in the file: the AttributeError reported can't happen  there since 
it's just a string split.

Could you try the outline using a current version of the devel branch?  
IIRC the missing getVr() method is something that Edward added recently, 
probably after 6.8.1 was released.  If you can't update for now I could 
send you a version that does work with 6.8.1 too.

On Wednesday, September 4, 2024 at 6:01:07 AM UTC-4 [email protected] 
wrote:

> Hello Thomas,
>
> [email protected] schrieb am Dienstag, 3. September 2024 um 19:46:40 
> UTC+2:
>
> In  Engineering Notebook: A Script-based Approach To Leo's Layouts 
> <https://groups.google.com/g/leo-editor/c/EYQ4odwLLxY> I proposed a 
> system to apply layouts (different arrangements of Leo's panes). Attached 
> to this post is a Leo outline that contains commands and a menu that let 
> you try out the system for yourself.
>
> ...
>
> Give the outline a try.  If you find any bugs or unexpected behavior, 
> please let me know.  ...
>
>
> I gave it a try with Leo 6.8.1 from PyPI in a Fedora 40 VM. - Everything 
> looks good, with one small hiccup. - Here's my log:
>  
> Download outline to '~/Documents/' as 'TBP-Layout-Script-Commands.leo'.
>
> * Read info 'About this Outline' ...
> * Try command 'layout-open-rpcalc-in-tabbed-body' ? - Works.
> * Try command 'layout-big-tree' ? - Not OK - See "Log-001".
> * Try command 'layout-restore-default' ? - Works.
> * Try command 'vr3-toggle-in-main-split' ? - Works.
> * Try command 'layout-make-tabbed-body-pane' ? - Works.
> * Try command 'layout-vr3-to-tabbed-body' ? - Works.
> * Try command 'layout-swap-nav-panel' ? - Works.
> * Try command 'layout-restore-default' ? - Works.
>
> With kind regards,
>
> Viktor
>
> ### Log-001 ###
>
>     Leo Log Window
>     Leo 6.8.1, master branch
>     Python 3.12.5, PyQt version 6.6.2
>     linux
>     reading settings in /home/user/Documents/TBP-Layout-Script-Commands.leo
>     read outline in 0.00 seconds
>     exception executing script
>     Traceback (most recent call last):
>       File 
> "/home/user/PyVE/PyPI/Leo/lib64/python3.12/site-packages/leo/core/leoCommands.py",
>  
> line 1214, in executeScript
>         c.executeScriptHelper(args, define_g, define_name, namespace, 
> script)
>       File 
> "/home/user/PyVE/PyPI/Leo/lib64/python3.12/site-packages/leo/core/leoCommands.py",
>  
> line 1259, in executeScriptHelper
>         exec(compile(script, scriptFile, 'exec'), d)
>       File "/home/user/.leo/scriptFile.py", line 31, in <module>
>         NAMES = 'viewrendered_pane viewrendered3_pane rpcalc'.split()
>              ^^^^^^^
>     AttributeError: module 'leo.plugins.viewrendered' has no attribute 
> 'getVr'
>     --------------------
>       line 30: if not c.user_dict.get(EXTRAS):
>     * line 31:     NAMES = 'viewrendered_pane viewrendered3_pane 
> rpcalc'.split()
>       line 32:     c.user_dict[EXTRAS] = set(NAMES)
>       line 33:
>
>

-- 
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/87b74ab5-1e86-442e-8d40-a73a96136290n%40googlegroups.com.

Reply via email to