Hello Thomas, tbp1...@gmail.com 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 leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/629d815e-42d5-48d6-82aa-16cc44171cc7n%40googlegroups.com.