Re: PR #4033 (in devel) creates layouts

2024-08-28 Thread Thomas Passin
"Layouts add VR or VR3 only if the user enables the corresponding plugin" I always enable them but I don't always want them on display when I open a given outline. On Wednesday, August 28, 2024 at 12:20:21 PM UTC-4 Edward K. Ream wrote: > On Wed, Aug 28, 2024 at 11:07 AM Th

Re: PR #4033 (in devel) creates layouts

2024-08-28 Thread Thomas Passin
I have some objections, but for right now I object to VR being forcibly included in all these layouts. Many times I don't want VR/VR3 at all on startup. And if I do, I want it to be VR3 unless I'm comparing the two's behavior or rendering. Sometimes I want to change where VR/VR3 appear, and I

Re: PR #4047 merged into devel: body editors are gone

2024-08-28 Thread Thomas Passin
Best wishes this time around from all of us. On Wednesday, August 28, 2024 at 5:24:19 AM UTC-4 lewis wrote: > Best wishes Edward, hope all goes well. > > On Wednesday, August 28, 2024 at 5:04:31 PM UTC+10 Edward K. Ream wrote: > >> PR #4047 has

Custom Menus - A Working Example

2024-08-27 Thread Thomas Passin
It's easy to create your own custom menus by defining them in MyLeoSettings.leo. I don't know what other people do, but I've evolved several fairly length ones. They are included in every outline. You can have other custom menus for just a specific outline by defining them in the @settings t

Re: Broken Add/Delete Body Editor

2024-08-27 Thread Thomas Passin
; We should wait a little to see if anyone responds, shouldn't we? We know >> at least one person was interested enough to try using Add-Editor. Maybe >> there are others who haven't been updating Leo all along. >> >> On Sunday, August 25, 2024 at 8:05:41 AM UTC-4 Edwa

Re: Try A Tabbed Body Pane

2024-08-26 Thread Thomas Passin
, any QWidget-based GUI object can be put into a tab in the body pane, once the body pane has been set up with tabs. It's easy. On Monday, August 26, 2024 at 5:21:40 PM UTC-4 Thomas Passin wrote: > Thanks, Edward! > > I have put these scripts into myLeoSettings.leo as menu item

Re: Try A Tabbed Body Pane

2024-08-26 Thread Thomas Passin
ng scripts in my Workbook. It's surprising how much can be done that way. On Monday, August 26, 2024 at 2:50:15 PM UTC-4 Edward K. Ream wrote: On Mon, Aug 26, 2024 at 10:53 AM Thomas Passin wrote: In the recent discussion about problems with the Add-Editor command and its added editor

Try A Tabbed Body Pane

2024-08-26 Thread Thomas Passin
In the recent discussion about problems with the Add-Editor command and its added editor, I floated the idea of making the body pane be a tabbed widget instead of the current stacked widget. I found it was simple to make this change in Leo's core code. Trying it out, I wrote a script to put VR3

Re: Broken Add/Delete Body Editor

2024-08-25 Thread Thomas Passin
M UTC-4 Edward K. Ream wrote: > On Sun, Aug 25, 2024 at 7:49 AM Thomas Passin wrote: > > We should wait a little to see if anyone responds, shouldn't we? We know >> at least one person was interested enough to try using Add-Editor. Maybe >> there are others who haven&#

Re: Broken Add/Delete Body Editor

2024-08-25 Thread Thomas Passin
n Sun, Aug 25, 2024 at 6:21 AM Thomas Passin wrote: > >> It looks like the colorizer might be getting the wrong position - the >> position of the original editor rather than the newly focused position. >> Might there be a p.copy() involved here? > > > Anything is pos

Re: Broken Add/Delete Body Editor

2024-08-25 Thread Thomas Passin
don't have any interest in trying to sort this thing out. On Sunday, August 25, 2024 at 2:57:39 AM UTC-4 Edward K. Ream wrote: > > > On Sat, Aug 24, 2024 at 7:00 PM Thomas Passin wrote: > >> It didn't do it [have the bug] several years ago. > > > Leo 6.7.8 wa

Re: Broken Add/Delete Body Editor

2024-08-24 Thread Thomas Passin
It didn't do it several years ago. Say at the time I added the freewin plugin. I didn't like the added editor because it was too easy to get confused about which editor instance was seeing which node. I kept making mistakes, typing into the wrong node. That influenced my design for freewin,

Re: Broken Add/Delete Body Editor

2024-08-23 Thread Thomas Passin
is a critical bug. > > Thanks, > Jake > > On Fri, Aug 23, 2024 at 12:45 PM Thomas Passin wrote: > >> I can confirm this behavior and it is a serious bug. One workaround is >> to select Node B and do an Undo action (CTRL-z). Your typing into Node B >> will

Re: Broken Add/Delete Body Editor

2024-08-23 Thread Thomas Passin
I can confirm this behavior and it is a serious bug. One workaround is to select Node B and do an Undo action (CTRL-z). Your typing into Node B will be there. If you mostly want to read node A wile editing Node B, you can use the freewin plugin. This will open a basic editor that will always

Re: Help with PyQt6-WebEngine on linux

2024-08-19 Thread Thomas Passin
I really dislike openSUSE. OTOH, I quite like Manjaro which is based on Arch but you don't need to make all those decisions and set up so many things. If you can (I don't remember) try using Cinnamon as the desktop manager rather than Gnome. I find the current version of Gnome to be really ann

Re: Help with PyQt6-WebEngine on linux

2024-08-18 Thread Thomas Passin
Well Hallelujah! Finally. I didn't know how to go from the library name (with the .so) to a package name. I don't know what we can do or say in the Leo installation instructions since the missing libraries are not Python packages (so pip can't install them) and what may be missing is so variabl

Viewrendered3's Simple Plotting Command

2024-08-16 Thread Thomas Passin
The viewrendred3.py (VR3) plugin has a command to plot 2-dimensional data. It's probably not well-known and its help message doesn't work right now so one could only know how to use it from reading the source code. I'm working on fixing that. In the meantime, here's how it works. It's very sim

A Few Enhancements To Freewin

2024-08-14 Thread Thomas Passin
For you Freewin users out there, the plugin now has two enhancements to the edit view: 1. The currently selected line is highlighted, using the same algorithm as Leo itself uses. 2. The edit view now adopts the styling of Leo's current theme so that it resembles the body editor more closely. F

Re: 🚀 Announcing LeoJS 1.0 🦁

2024-08-13 Thread Thomas Passin
That's in the LeoPython code too: if preview: if kind == 'sphinx': g.es_print('preview not available for sphinx') Félix has just reproduced the Python code. The only way I can see how to get a "preview" for Sphinx would be to get Sphinx to process the tree and generate i

Re: How The Mighty Have Fallen, Python Edition

2024-08-13 Thread Thomas Passin
The "Mighty" in my title of this conversion didn't refer to Tim, but to the old Python way, which seems to becoming taken over by the steering committee/bureaucracy. Maybe this has something to do with my frustration with Python getting more and more complicated very quickly. On Tuesday, Augus

How The Mighty Have Fallen, Python Edition

2024-08-13 Thread Thomas Passin
https://chrismcdonough.substack.com/p/the-shameful-defenestration-of-tim -- 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. T

Re-styling The Tree And Body On-The-Fly

2024-08-13 Thread Thomas Passin
Simple scripts can re-style the tree and body editor, over-riding the current theme's settings. These changes only last until the outline is loaded again, but they can be very helpful when your want to tweak a theme. Say you want to try a different font size for the tree. Normally you would n

Re: OT - Windows 10 - Fixing The Lag In Changing Virtual Desktops

2024-08-11 Thread Thomas Passin
ktops. I honestly > didn’t even know Windows 10 had that feature :) > > Jake > > On Aug 11, 2024, at 5:32 PM, Thomas Passin wrote: > > This isn't about Leo but I can't be the only one affected by this > problem, which can be very annoying. > > > I use

OT - Windows 10 - Fixing The Lag In Changing Virtual Desktops

2024-08-11 Thread Thomas Passin
This isn't about Leo but I can't be the only one affected by this problem, which can be very annoying. I use many virtual desktops in my daily computing. Usually I have at least four, and sometimes up to six. For example, my browser and email client are in one. Leo and associated folders, co

On Using LLMs

2024-08-08 Thread Thomas Passin
Nicholas Carlini has written a long piece on how he's used LLMs to help him with basically easy but long, boring, or both programming (with some non-programming too) tasks. It's a thoughtful and intriguing piece: How I Use AI

Re: Installation of Slixfeed with pip fails

2024-08-03 Thread Thomas Passin via Python-list
On 8/3/2024 2:49 PM, Barry Scott via Python-list wrote: On 30 Jul 2024, at 18:36, Schimon Jehudah via Python-list wrote: Greetings, to one and all! My name is Schimon, and I am the developer of a news chat bot for the XMPP network, called Slixfeed. I have recently added support for OMEMO

Re: Requirements For A New Layout System

2024-07-31 Thread Thomas Passin
destroy new widgets such as VR/VR3. On Wednesday, July 31, 2024 at 8:34:57 AM UTC-4 Thomas Passin wrote: > There will always be the main and secondary splitters. They should never > be removed. The secondary splitter is contained in the main one. Once I > realized that, things got muc

Re: Requirements For A New Layout System

2024-07-31 Thread Thomas Passin
There will always be the main and secondary splitters. They should never be removed. The secondary splitter is contained in the main one. Once I realized that, things got much clearer. Any of Leo's standard frames - body editor, tree, log - can be placed into any splitter, and any of the spl

Re: Help with PyQt6-WebEngine on linux

2024-07-31 Thread Thomas Passin
I don't know the answer so I'll flail around with a few things that I do know. Please forgive me if you have already considered them. The simplest thing that comes to mind - one that bites me from time to time - is forgetting to *source* the venv *activate* script before using the venv. Then P

Re: Predicting an object over an pretrained model is not working

2024-07-30 Thread Thomas Passin via Python-list
tand what those function calls are returning. It's documented somewhere, right? And you really do need to know the probabilities of the competing images because otherwise you won't know how confident you can be that the identification is a strong one. Le mar. 30 juil. 202

Re: Requirements For A New Layout System

2024-07-30 Thread Thomas Passin
> akin to that — that allows *naming* plugin-defined widgets and referencing > those names for placement in layouts — would be supremely useful. > > Jake > > On Jul 30, 2024, at 5:04 PM, Thomas Passin wrote: > > We've had several threads about layouts recently, since wit

Jon Udell on Choosing When To Use (or Not Use) LLMs as a Developer

2024-07-30 Thread Thomas Passin
Choosing When To Use (or Not Use) LLMs as a Developer -- 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,

Requirements For A New Layout System

2024-07-30 Thread Thomas Passin
We've had several threads about layouts recently, since with the demise of the nested splitter there's no way for a user to apply other layouts except by using a script, and no way to return to a previous layout without another script. Edward is off and running with his plans. I have been work

Re: Predicting an object over an pretrained model is not working

2024-07-30 Thread Thomas Passin via Python-list
On 7/30/2024 2:18 PM, marc nicole via Python-list wrote: Hello all, I want to predict an object by given as input an image and want to have my model be able to predict the label. I have trained a model using tensorflow based on annotated database where the target object to predict was added to t

Re: Install Leo on wsl2 Debian

2024-07-30 Thread Thomas Passin
I meant installing WSL itself and the Linux distro on it. I saw some instructions a while ago and it seemed tricky, or at least fussy. On Tuesday, July 30, 2024 at 9:17:57 AM UTC-4 lewis wrote: > On Monday, July 29, 2024 at 11:04:13 PM UTC+10 tbp1...@gmail.com wrote: > > I've been reluctant to

Re: Install Leo on wsl2 Debian

2024-07-30 Thread Thomas Passin
PEP 668 refers to this document as being the definitive one: Externally Managed Environments . Reading it, I see that everything is optional and has to be set up by the distr

Re: Install Leo on wsl2 Debian

2024-07-30 Thread Thomas Passin
"I believe the current recommendation is to use a python virtual environment, which is a little bit of extra commands to make it work but it does work well. I would suggest looking through the group archive as I remember a lot of people have talked about this in the past" I started installing

Tim Bray On The Union Of Finite Automata

2024-07-29 Thread Thomas Passin
For the few readers who are interested in this kind of thing - think unions of regular expressions - and how to write code to process them at very high speed, here is Tim Bray, who wrote some of the Amazon code to do millions of matches per second. Unions Of Finite Automata

Re: Install Leo on wsl2 Debian

2024-07-29 Thread Thomas Passin
I haven't found the need for any differences in myLeoSettings.leo between Windows and Linux, unless of course a setting points to a specific path or program, like an external text editor. I have sometimes wanted to adjust font sizes in theme files, either for the tree or the body. Changing the

Re: Install Leo on wsl2 Debian

2024-07-29 Thread Thomas Passin
I haven't used pipx, but two things come to mind, and maybe you have covered the first already. 1. Log out and log in again (or better, reboot since there are new global paths involved) to make sure that the new paths actually get exported. This is the first resort for problems after changing p

Re: Progress report: new layouts

2024-07-28 Thread Thomas Passin
2024 at 2:13:37 PM UTC-4 Edward K. Ream wrote: > On Sun, Jul 28, 2024 at 1:07 PM Thomas Passin wrote: > >> The line between core code and plugin code has gotten somewhat blurred. >> For example, the qt- plugins or quicksearch. And I think that's fine. >> > >

Re: Progress report: new layouts

2024-07-28 Thread Thomas Passin
The line between core code and plugin code has gotten somewhat blurred. For example, the qt- plugins or quicksearch. And I think that's fine. On Sunday, July 28, 2024 at 1:52:43 PM UTC-4 Edward K. Ream wrote: > @button nodes can easily change layouts! Here are two tested examples: >> > > This

Re: Progress report: new layouts

2024-07-28 Thread Thomas Passin
I don't think that restarting Leo is always called for. A user might change the layout only for certain outlines. I do that all the time. If there has to be a restart process, then if the default layout is in the settings for a specific outline, then only that outline needs to be restarted.

Re: what to call after changing body text, please?

2024-07-28 Thread Thomas Passin
The wrapper, w = c.frame.body.wrapper, is a member of c, not of the body. When you select a node, w gets filled with that node's body text. So you have to transfer that modified text back to the node's body before switching to a new node. On Sunday, July 28, 2024 at 10:40:49 AM UTC-4 jkn wrot

Re: A Script To Undo Many Layout Changes

2024-07-28 Thread Thomas Passin
It's somewhat akin to undo/redo. I would say. No matter what the details, the undo or restore code still needs to know how to delete added GUI widgets. That's where a teardown() API method comes in. On Sunday, July 28, 2024 at 10:11:19 AM UTC-4 Edward K. Ream wrote: > On Sun, Jul 28, 2024 at 3:

Re: what to call after changing body text, please?

2024-07-28 Thread Thomas Passin
"you" here is code in Leo's core. It's not mine. I think the code is changing text in the wrapper, w, and then retrieving all the text from the wrapper and assigning it to p.b. It seems a little strange to me too. I will say that I have never had text vanish when I assign it directly to p.b

Re: what to call after changing body text, please?

2024-07-28 Thread Thomas Passin
I think I forgot that the recommended way to do unto/redo has been changed since I wrote that script. Also, you can directly set p.b or p.v.b and those changes will stick. Here's one I found in Leo's code base that does that and uses the newer undo system: def insertBodyTime(self: Self, event:

Re: what to call after changing body text, please?

2024-07-28 Thread Thomas Passin
Here's one I use and it works fine. You should set up for undoing after an insert, and this script does that too: """Insert a node with id and creation timestamp strings""" c.doCommandByName('insert-node') undoType = 'xx-insert-node' p.moveToNext() w = c.frame.body.wrapper oldSel = w.getSelect

Re: A Script To Undo Many Layout Changes

2024-07-28 Thread Thomas Passin
It's not necessary that VR/VR3 be in their own separate splitter. None of my layout scripts create one. In one case, VRx goes into the body frame's existing tabbed layout widget. In another, it goes into the body frame's existing splitter. In another it goes into the Log frame. So don't go

Re: 🚀 Announcing LeoJS 1.0 🦁

2024-07-27 Thread Thomas Passin
Congratulations and thank you! But these words seem too weak to acknowledge the commitment and effort you have put into the work (not to mention the additional effort to get the LLM-generated images for each release). I think we should all acknowledge Edward Ream too. He has supported the pr

A Script To Undo Many Layout Changes

2024-07-27 Thread Thomas Passin
This script will safely undo all the layout changes we have been discussing recently. It will work for most layouts that include zero, one, or both of VR and VR3. It does not solve the general problem. One of many reasons for that is that any Qt GUI widgets that may have been added by a user s

Re: Leo 6.8.1 is here. LeoJS 1.0 coming soon!!

2024-07-27 Thread Thomas Passin
Leo 6.8.1 installed and ran on Manjaro Linux (an Arch-based distro). Leo had previously been installed on this machine so there were no problems with those potential missing shared Qt libraries. On Saturday, July 27, 2024 at 2:32:52 PM UTC-4 Thomas Passin wrote: > Leo 6.8.1 installed and

Re: Leo 6.8.1 is here. LeoJS 1.0 coming soon!!

2024-07-27 Thread Thomas Passin
Leo 6.8.1 installed and ran on Windows using Python 3.9, 3.11, and 3.12. On Saturday, July 27, 2024 at 6:16:26 AM UTC-4 Edward K. Ream wrote: > Leo https://leo-editor.github.io/leo-editor/ 6.8.1 is now available on > GitHub and pypi >

Re: Issue with pip Installation on My Laptop

2024-07-26 Thread Thomas Passin via Python-list
On 7/26/2024 7:25 AM, Lizna Shah via Python-list wrote: OSError: [WinError 225] Operation did not complete successfully because the file contains a virus or potentially unwanted software That part of the error message tells you the story. Windows thinks some file in the install has been corru

Raymond Chen: Words Of Wisdom About Naming

2024-07-24 Thread Thomas Passin
Today in TheOldNewThing blog: API naming principle: If there is no direct object, then the direct object is the source object Chen is nearly always worth reading. -- You received this message because you are subscribed to the

Re: Leo doesn't start because of some Qt-problems

2024-07-23 Thread Thomas Passin
On Tuesday, July 23, 2024 at 1:05:59 PM UTC-4 gates...@gmail.com wrote: On Arch specifically (and its derivatives like Endeavor and Manjaro), the .so libs pulled in by pip generally cause issues when they override the system-level libs (just due to how tightly-integrated all the Arch packages

Re: Leo doesn't start because of some Qt-problems

2024-07-23 Thread Thomas Passin
he system's qt6 libraries and the ones for the PyQt6 version installed for Leo. In that case we might still get an error. Maybe the exported paths should point to the Python version, although only for that Leo session. On Tuesday, July 23, 2024 at 8:44:02 AM UTC-4 Thomas Passin wrote: >

Re: Leo doesn't start because of some Qt-problems

2024-07-23 Thread Thomas Passin
> Jake > > On Jul 23, 2024, at 7:30 AM, Thomas Passin wrote: > > Good work! BTW, on my Linux Mint VM that path is > */home/tom/.local/lib/python3.11/site-packages/PyQt6/Qt6/plugins/platforms.* > The file of interest there must be *libqxcb.so*. > > > The system'

Re: Leo doesn't start because of some Qt-problems

2024-07-23 Thread Thomas Passin
in ""'. On Monday, July 22, 2024 at 5:24:57 PM UTC+2 gates...@gmail.com wrote: Does the file /usr/lib/qt6/plugins/platforms/libqxcb.so exist on your system? Could you try re-installing package `qt6-base`, if not? Jake On Mon, Jul 22, 2024 at 10:56 AM Thomas Passin wrote: It&

Re: Leo doesn't start because of some Qt-problems

2024-07-22 Thread Thomas Passin
>> >>>> Apologies, pkg name is ‘qt6-tools’, not ‘qt6-utils’. >>>> >>>> Jake >>>> >>>> On Jul 22, 2024, at 9:30 AM, Jacob Peck wrote: >>>> >>>>  >>>> >>>> Thomas, their very first post

Re: Leo doesn't start because of some Qt-problems

2024-07-22 Thread Thomas Passin
he error text. It seems that there is a directory path >> that didn't get set or has been deleted: 'not found in ""'. >> >> On Monday, July 22, 2024 at 5:24:57 PM UTC+2 gates...@gmail.com wrote: >> >>> Does the file /usr/lib/qt6/p

Re: Leo doesn't start because of some Qt-problems

2024-07-22 Thread Thomas Passin
quot;'. > > On Monday, July 22, 2024 at 5:24:57 PM UTC+2 gates...@gmail.com wrote: > >> Does the file /usr/lib/qt6/plugins/platforms/libqxcb.so exist on your >> system? >> >> Could you try re-installing package `qt6-base`, if not? >> >> Jake >>

Re: Leo doesn't start because of some Qt-problems

2024-07-22 Thread Thomas Passin
If your system uses Wayland2, there's another environmental variable that might help: Qt platform plugin xcb could not load - Qt6 <https://forum.qt.io/topic/151317/qt-platform-plugin-xcb-could-not-load-qt6> On Monday, July 22, 2024 at 10:56:48 AM UTC-4 Thomas Passin wrote: >

Re: Leo doesn't start because of some Qt-problems

2024-07-22 Thread Thomas Passin
e: >> >>  >> >> Thomas, their very first post in this thread indicated they did run with >> that env var set. >> >> Please try (re-)installing qt6-utilis. That fixed it on my Arch install, >> and I assume Endeavor uses the arch packages. >> >

Re: Leo doesn't start because of some Qt-problems

2024-07-22 Thread Thomas Passin
Sorry, I forgot you had already set the variable. But what's with the "&&leo"? The error message you should looks just like the ones I've seen without the variable. With it you're supposed to get more details. On Monday, July 22, 2024 at 8:50:10 AM UTC-4 Th

Re: Leo doesn't start because of some Qt-problems

2024-07-22 Thread Thomas Passin
a more complete error message by setting this >> environmental variable before launching Leo: >> >> export QT_DEBUG_PLUGINS=1 >> >> On Monday, July 22, 2024 at 6:22:55 AM UTC-4 Thomas Passin wrote: >> >>> This error comes up with small variations for som

Re: Leo doesn't start because of some Qt-problems

2024-07-22 Thread Thomas Passin
-without> Briefly, you can get a more complete error message by setting this environmental variable before launching Leo: export QT_DEBUG_PLUGINS=1 On Monday, July 22, 2024 at 6:22:55 AM UTC-4 Thomas Passin wrote: > This error comes up with small variations for some Linux systems. Man

Re: Leo doesn't start because of some Qt-problems

2024-07-22 Thread Thomas Passin
This error comes up with small variations for some Linux systems. Many times the error message will continue to suggest a command line for installing the required library. That library may already be installed but not the right version. If there was no suggestion, search online for how to i

Re: ENB: More about layouts

2024-07-21 Thread Thomas Passin
I think there should be a Layout class that contains 1. A description of a layout; 2. A method that can create the layout from the description. On Sunday, July 21, 2024 at 7:34:25 AM UTC-4 Edward K. Ream wrote: > On Sunday, July 21, 2024 at 6:14:50 AM UTC-5 Edward K. Ream wrote: > > > This Engi

Re: Using multiple layouts

2024-07-20 Thread Thomas Passin
"But ideally, a layout undoer should preserve the *existing *VR/VR3 controller and its gui. You would think it would be straightforward to "relocate" the VR/VR3 pane, but I haven't discovered how to do that yet." I found with some of the other scripts that if I inserted a VR/VR3 widget into a d

Re: Using multiple layouts

2024-07-20 Thread Thomas Passin
The most obvious way is to use try...except blocks. if vr_splitter: vr_splitter.deleteLater() would become: try: vr_splitter.deleteLater() except: pass Presumably this would not prevent unhooking the vr object from Leo's event syste, On Saturday, July 20, 2024 at 11:50:44 AM UTC-4 E

Re: Using multiple layouts

2024-07-20 Thread Thomas Passin
20, 2024 at 7:19 AM Thomas Passin wrote: > >> I think the undoers should be pushed on a stack. > > > My idea was that undoers always reverted to the original (default) layout. > I still think this is a reasonable starting point. > > We can discuss this further aft

Re: Using multiple layouts

2024-07-20 Thread Thomas Passin
I think the undoers should be pushed on a stack. The commander will have a method that pops the stack and executes that single undoer. This approach lets a user change the layout, and then change it again without losing the ability to return to an earlier layout. There could be a method to w

Re: On New-style Layouts And Their Scripts

2024-07-19 Thread Thomas Passin
utative. Otherwise things will be trickier. On Friday, July 19, 2024 at 9:13:21 AM UTC-4 Edward K. Ream wrote: > On Fri, Jul 19, 2024 at 7:32 AM Thomas Passin wrote: > >> I pictured a layout plugin doing it work by running one of those >> scripts... >> >

Re: On New-style Layouts And Their Scripts

2024-07-19 Thread Thomas Passin
I pictured a layout plugin doing it work by running one of those scripts... On Friday, July 19, 2024 at 7:57:12 AM UTC-4 Edward K. Ream wrote: > On Fri, Jul 19, 2024 at 6:42 AM Thomas Passin wrote: > >> "Plugins that change layouts probably don't have to worry about

Re: On New-style Layouts And Their Scripts

2024-07-19 Thread Thomas Passin
On Friday, July 19, 2024 at 7:21:54 AM UTC-4 Edward K. Ream wrote: On Fri, Jul 19, 2024 at 6:10 AM Thomas Passin wrote: We've been discussing how to create new layouts for Leo now that the old nested-splitter system is gone - see https://groups.google.com/g/leo-editor/c/nLfhTgnPcEc That th

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-19 Thread Thomas Passin
On Friday, July 19, 2024 at 7:07:46 AM UTC-4 Edward K. Ream wrote: On Fri, Jul 19, 2024 at 6:02 AM Thomas Passin wrote: >> Next, I'd like to replace the vx switch. Leo's plugins manager can tell us whether VR or VR3 is running. > Not if both are enabled, which I sometim

On New-style Layouts And Their Scripts

2024-07-19 Thread Thomas Passin
We've been discussing how to create new layouts for Leo now that the old nested-splitter system is gone - see https://groups.google.com/g/leo-editor/c/nLfhTgnPcEc That thread includes a number of interesting scripts that can create new layouts. But they all have a serious problem: they all ass

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-19 Thread Thomas Passin
On Friday, July 19, 2024 at 6:27:36 AM UTC-4 Edward K. Ream wrote: On Thu, Jul 18, 2024 at 9:06 PM Thomas Passin wrote: Meanwhile, here's an improvement on my script for "render-focused". The cognitive dissonance is gone, unnecessary or redundant code is gone, and it works

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-18 Thread Thomas Passin
isible(): > body_splitter.addWidget(vrp) > body_splitter.setSizes([100_000] * len(body_splitter.sizes())) > ms.setSizes([100_000] * len(ms.sizes())) > ss.setSizes([100_000] * len(ss.sizes())) > c.doCommandByName('vr-show') > ``` > > I wasn'

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-18 Thread Thomas Passin
On Thursday, July 18, 2024 at 9:11:29 PM UTC-4 Edward K. Ream wrote: On Thu, Jul 18, 2024 at 4:27 PM Thomas Passin wrote: 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

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-18 Thread Thomas Passin
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-re

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-18 Thread Thomas Passin
On Thursday, July 18, 2024 at 1:37:08 PM UTC-4 Edward K. Ream wrote: 1. There is a setting that specifies initial orientation. A plugin *could* use that setting, but a plugin could try other strategies, such as examining the widget hierarchy directly. The user might have changed the orientat

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-18 Thread Thomas Passin
On Thursday, July 18, 2024 at 1:22:56 PM UTC-4 Edward K. Ream wrote: On Thu, Jul 18, 2024 at 12:08 PM 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

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-18 Thread Thomas Passin
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 Pa

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-18 Thread Thomas Passin
On Thursday, July 18, 2024 at 8:41:47 AM UTC-4 Edward K. Ream wrote: On Thu, Jul 18, 2024 at 7:24 AM Jacob Peck wrote: @buttons are an objectively bad solution to this for a casual user. That's why a set of layout plugins would be a valuable addition to Leo. I feel that 'layout plugins' woul

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-18 Thread Thomas Passin
On Thursday, July 18, 2024 at 8:24:52 AM UTC-4 gates...@gmail.com wrote: To be brief and frank -- @buttons are an objectively bad solution to this for a casual user. An @button to set their favorite layout is: 1) inflexible -- a button will set a *specific* layout, and nothing else 2) bespoke

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-18 Thread Thomas Passin
On Thursday, July 18, 2024 at 7:05:08 AM UTC-4 Edward K. Ream wrote: On Wed, Jul 17, 2024 at 8:51 PM Jacob Peck wrote: This being the largest regression I've seen Leo go through in 12 years is a *testament* to how fantastic this app is. Which also, somehow, heightens it absence. It's just a

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-17 Thread Thomas Passin
On Wednesday, July 17, 2024 at 8:44:35 PM UTC-4 gates...@gmail.com wrote: Thank you, Thomas and Edward, for your inputs and examples. As a Leo user (and occasional dev/contributor) over the last 12 years and change, removing the ‘Easter egg’ menus feels like the largest regression I’ve seen Le

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-17 Thread Thomas Passin
ide') else: ms = g.app.gui.find_widget_by_name(c, 'main_splitter') ms.addWidget(vr) ms.setSizes([100_000] * len(ms.sizes())) c.doCommandByName('vr-show') On Wednesday, July 17, 2024 at 5:14:53 PM UTC-4 Thomas Passin wrote: > If you want to use viewrendered3 i

Re: How do I organize my panes, now that the 'easter egg' interface is gone?

2024-07-17 Thread Thomas Passin
If you want to use viewrendered3 instead of viewrendered, I have scripts that will open it in the same pane as the body editor, and you can toggle between VR3 and the body editor. I have another one that can open VR3 in the log pane instead of on a small panel under it. I'm pretty sure a small

Re: pip install Leo now installs Leo 6.8.0 *and* its dependencies

2024-07-14 Thread Thomas Passin
Success on Windows using Python 3.11. I realized that I could test a new install since I still have Python 3.11 on my computer as well as 3.12. and that 3.11 install has never seen Leo 6.8.0. For that matter I still have Python 3.9, and Leo 6.8.0 installed successfully on that too. On Sunday,

Re: pip install Leo now installs Leo 6.8.0 *and* its dependencies

2024-07-13 Thread Thomas Passin
Success on Linux in a fresh venv. On Saturday, July 13, 2024 at 7:52:47 PM UTC-4 Edward K. Ream wrote: > PyPi contains a new *build *of Leo 6.8.0 that fixes installation > problems, so > pip install leo should "just work." > > PR #3995 changes

Re: Leo 6.8.0 from PyPI does not work in a new VM

2024-07-12 Thread Thomas Passin
On Friday, July 12, 2024 at 4:19:38 PM UTC-4 viktor@gmail.com wrote: Hello Thomas, tbp1...@gmail.com schrieb am Freitag, 12. Juli 2024 um 14:30:05 UTC+2: On Friday, July 12, 2024 at 5:57:22 AM UTC-4 viktor@gmail.com wrote: Hello Edward, There is a problem with the latest release of Le

Re: Colors on Windows

2024-07-12 Thread Thomas Passin
When you open a theme outline using the menu item *Settings/Open A Theme File*, the original Leo window will be unresponsive until you close the second Leo window, the one that opened the theme outline. There is nothing wrong; Leo has been this way forever. It's similar to a modal dialog box,

Re: Leo 6.8.0 from PyPI does not work in a new VM

2024-07-12 Thread Thomas Passin
On Friday, July 12, 2024 at 5:57:22 AM UTC-4 viktor@gmail.com wrote: Hello Edward, There is a problem with the latest release of Leo from PyPI I can confirm this on both Linux and Windows, and the cause is that pip isn't installing *any* of the dependencies into the venv. If you have a

Re: LeoJS needs to be its own thing

2024-07-07 Thread Thomas Passin
On Sunday, July 7, 2024 at 12:04:27 PM UTC-4 mfid...@meetinghouse.net wrote: Ok... but it sure would be lot more attractive as a stand-alone app, not a plug-in, and not tied to VS-code. Yes I would like that too. And have it disengaged from node.js. But you can't write all that stuff yoursel

Re: Abridged summary of leo-editor@googlegroups.com - 1 update in 1 topic

2024-07-07 Thread Thomas Passin
On Sunday, July 7, 2024 at 12:18:39 AM UTC-4 Félix wrote: Some personal thoughts: The genius of Leo, its 'foundational features independent of their implementation' or, if you will, the 'Leo-as-an-idea' concept... Is the masterpiece, from Edward's mind. Maybe Edward feels otherwise because

Re: LeoJS needs to be its own thing

2024-07-07 Thread Thomas Passin
On Sunday, July 7, 2024 at 12:08:49 AM UTC-4 Félix wrote: Thank you *Miles Fidelman* for that observation : It is not silly at all!! You are right, although it is the first thing I show in the 'LeoJs features' video, it should be the first (or almost first) thing i write about at the top of th

Re: Best use of "open" context manager

2024-07-06 Thread Thomas Passin via Python-list
On 7/6/2024 6:49 AM, Rob Cliffe via Python-list wrote: Consider this scenario (which I ran into in real life):     I want to open a text file and do a lot of processing on the lines of that file.     If the file does not exist I want to take appropriate action, e.g. print an error message and

<    1   2   3   4   5   6   7   8   9   10   >