I forgot to point out that in my script (above), you can get the same
result for VR instead of VR3 by simply dropping the "3" from all the lines
of code.
Attached is my custom menu from which I can run several of these scripts.
On Thursday, July 18, 2024 at 1:08:33 PM UTC-4 Thomas Passin wrote:
> I've already got a script to do Layout # 1 in Jacob's linked layouts. If
> you have #1, you can toggle between it and #4 using the existing
> *Window/Toggle-Split-Direction* menu item. I've attached screen shots of
> the two layouts, and the script is below:
>
> import leo.plugins.viewrendered3 as v3
> h = c.hash()
> vr3 = v3.controllers.get(h)
>
> if not vr3:
> v3.controllers[h] = vr3 = v3.ViewRenderedController3(c)
>
> if vr3.isVisible():
> c.doCommandByName('vr3-hide')
>
> else:
> ms = g.app.gui.find_widget_by_name(c, 'main_splitter')
> ms.addWidget(vr3)
> ms.setSizes([100_000] * len(ms.sizes()))
> vr3.show()
>
> I've had this script in a custom menu for some time, though I find I don't
> use it much (I use a different layout most of the time). The UI aspect of
> this is how to package such commands to make it easy for a user to find
> them and use them.
> On Thursday, July 18, 2024 at 1:00:27 PM UTC-4 Edward K. Ream wrote:
>
>> On Thu, Jul 18, 2024 at 10:26 AM Jacob Peck <[email protected]> wrote:
>>
>>> Characterizing criticism and concerns as 'bitching' is quite off putting.
>>>
>>
>> I apologize for my brusque remarks.
>>
>> Still, it seems unfair to complain about what used to be without
>> acknowledging that the free_layout plugin *prevented* static definitions
>> of layouts.
>>
>>
>> Here is a straightforward plan that requires no new Leonine features:
>>
>>
>> - Create @button nodes for the four layouts in the "starter pack."
>>
>> Their docstrings will describe the layouts.
>>
>> - Once we have acceptable @button scripts, we can easily convert them to
>> plugins.
>>
>> - A new info item can summarize these new plugins.
>>
>> This item can include screenshots.
>>
>>
>> I'll be happy to help with the four layouts if you like.
>>
>>
>> Edward
>>
>>
--
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/e2b28dab-7daf-4c28-a935-b38817797de7n%40googlegroups.com.