And here's a script to create Jacob's Layout #3 "render-focused". This script will work for either VR or VR3 if you just change the module imported at the top.
"""Change layout to Gates # 3 "render-focused".""" # ref: https://gist.github.com/gatesphere/82c9f67ca7b65d09e85208e0b2f7eca1#file-render-focused from leo.core.leoQt import Orientation import leo.plugins.viewrendered3 as v3 cmd = 'vr3-show' if 'ed3' in v3.__name__ else 'vr-toggle' gui = g.app.gui ms = gui.find_widget_by_name(c, 'main_splitter') ss = gui.find_widget_by_name(c, 'secondary_splitter') lf = gui.find_widget_by_name(c, 'logFrame') of = gui.find_widget_by_name(c, 'outlineFrame') edf = gui.find_widget_by_name(c, 'bodyFrame') init_orientation = ms.orientation() g.es(init_orientation) if init_orientation != Orientation.Horizontal: ms.setOrientation(Orientation.Horizontal) ss.setOrientation(Orientation.Vertical) ms.addWidget(lf) # Temporarily to get body to be second ss.addWidget(edf) ss.addWidget(lf) h = c.hash() vr3 = v3.controllers.get(h) if not vr3: v3.controllers[h] = vr3 = v3.ViewRenderedController3(c) if not vr3.isVisible(): ms = g.app.gui.find_widget_by_name(c, 'main_splitter') ms.addWidget(vr3) ms.setSizes([100_000] * len(ms.sizes())) c.doCommandByName(cmd) ss.setSizes([100_000] * len(ss.sizes())) ms.setSizes([100_000] * len(ms.sizes())) -- 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/525e9a45-2e34-4040-a9ec-f0e656f3da2fn%40googlegroups.com.
