Hello Thomas, [email protected] schrieb am Dienstag, 1. Oktober 2024 um 19:26:44 UTC+2:
I have been improving the new layout and integrating it into Leo's code base. For those of you who so kindly tried out the demo scripts earlier, here's what has changed: ... A PR for the new code has been submitted. You don't have to wait for it to be reviewed and merged - get the tbp-leo_layouts branch from my cloned repo at https://github.com/tbpassin/leo-editor/tree/tbp-leo_layouts I have also revised the Layout-Demo outline. It creates a new menu filled with items that show how many of the commands work, along with others that are scripts not included in the qt_layout module. This outline can be gotten from my repo at https://github.com/tbpassin/leo-editor-contrib/tree/devel/Projects/new-layout Be sure to read the "About This Outline" node in the outline. I've done a short test of your new layout system integrated into Leo's code base. It does not work in my Fedora Linux 40 environment, although I believe I followed all documented steps ... Here are my logs from this test: * Check if repo 'tbp-leo_layouts' is up to date - OK - See "Log-001". * Close & re-open this outline using the Leo variant from Thomas - OK - See "Log-002". * Open the outline 'Layout-Demo' & try LD > Leo's "Legacy" Layout - Not OK - See "Log-003". * Try LD > Restore Default Layout From Settings - Not OK - See "Log-004". Let me know if you need further info from my environment. With kind regards, Viktor ### Log-001 [user@fedora-leo-study-vm ~]$ [user@fedora-leo-study-vm ~]$ cd PyVE/GitHub/tbpassin/Leo [user@fedora-leo-study-vm Leo]$ [user@fedora-leo-study-vm Leo]$ cd leo-editor/ [user@fedora-leo-study-vm leo-editor]$ [user@fedora-leo-study-vm leo-editor]$ git branch master * tbp-leo_layouts [user@fedora-leo-study-vm leo-editor]$ [user@fedora-leo-study-vm leo-editor]$ git pull remote: Enumerating objects: 5, done. remote: Counting objects: 100% (5/5), done. remote: Total 5 (delta 4), reused 5 (delta 4), pack-reused 0 (from 0) Unpacking objects: 100% (5/5), 911 bytes | 82.00 KiB/s, done. From https://github.com/tbpassin/leo-editor 20bcef808..532f9467f tbp-leo_layouts -> origin/tbp-leo_layouts Updating 20bcef808..532f9467f Fast-forward leo/plugins/qt_layout.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) [user@fedora-leo-study-vm leo-editor]$ ### Log-002 Leo Log Window Leo 6.8.2-devel, tbp-leo_layouts branch, build 532f9467fa 2024-10-05 16:43:51 -0400 Python 3.12.6, PyQt version 6.6.3 linux setting leoID from os.getenv('USER'): 'user' home: /home/user leo-editor: /home/user/PyVE/GitHub/tbpassin/Leo/leo-editor load: /home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/core config: /home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/config reading settings in /home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/config/leoSettings.leo reading settings in /home/user/.leo/myLeoSettings.leo reading settings in /home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/themes/tbp_dark_solarized.leo VR3 -- no asciidoc processor VR3 -- no asciidoc3 processor Can't find /home/user/.leo/vr3/vr3_config.ini so VR3 cannot execute non-Python code reading settings in /home/user/Documents/SL2024.leo read outline in 0.24 seconds ### Log-003 Leo Log Window Leo 6.8.2-devel, tbp-leo_layouts branch, build 532f9467fa 2024-10-05 16:43:51 -0400 Python 3.12.6, PyQt version 6.6.3 linux reading settings in /home/user/Projects/GitHub/tbpassin/leo-editor-contrib/Projects/new-layout/Layout-Demo.leo read outline in 0.00 seconds Traceback (most recent call last): File "/home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/core/leoCommands.py", line 2760, in doCommand return_value = command_func(event) ^^^^^^^^^^^^^^^^^^^ File "/home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/plugins/qt_layout.py", line 104, in layout_legacy cache.restoreFromLayout(LEGACY_LAYOUT) File "/home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/plugins/qt_layout.py", line 550, in restoreFromLayout widget = self.created_splitter_dict[name] ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ KeyError: 'viewrendered_pane' ### Log-004 Traceback (most recent call last): File "/home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/core/leoCommands.py", line 2760, in doCommand return_value = command_func(event) ^^^^^^^^^^^^^^^^^^^ File "/home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/plugins/qt_layout.py", line 75, in restoreDefaultLayout c.commandsDict[layout](event) File "/home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/plugins/qt_layout.py", line 104, in layout_legacy cache.restoreFromLayout(LEGACY_LAYOUT) File "/home/user/PyVE/GitHub/tbpassin/Leo/leo-editor/leo/plugins/qt_layout.py", line 550, in restoreFromLayout widget = self.created_splitter_dict[name] ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ KeyError: 'viewrendered_pane' -- 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/97fb84d5-5da4-4438-8411-23b458caf733n%40googlegroups.com.
