Re: ENB: Seconds thoughts about Trilium Notes

2024-04-26 Thread Thomas Passin
On Friday, April 26, 2024 at 1:31:41 PM UTC-4 Edward K. Ream wrote: The Easter Egg is the only way to expand the VR pane. An optional floating VR window would solve that problem. Here you go: ns = c.free_layout.get_top_splitter() ns.open_window('_leo_viewrendered3') -- You received this

Re: ENB: Seconds thoughts about Trilium Notes

2024-04-26 Thread Thomas Passin
> of perceived 'dubiousness'. Experimentation is fruitful, and painless, > given git branching. > > Jake > > On Fri, Apr 26, 2024 at 1:31 PM Edward K. Ream wrote: > >> On Fri, Apr 26, 2024 at 11:49 AM Thomas Passin wrote: >> >> >> Trilium undervalue

Re: ENB: Seconds thoughts about Trilium Notes

2024-04-26 Thread Thomas Passin
On Friday, April 26, 2024 at 1:13:38 PM UTC-4 Edward K. Ream wrote: On Fri, Apr 26, 2024 at 8:02 AM Thomas Passin wrote: >> As an option, the VR pane could become a floating window. > This is already possible, at least with VR3. With VR3 enabled, right click on the boundary be

Re: ENB: Seconds thoughts about Trilium Notes

2024-04-26 Thread Thomas Passin
On Friday, April 26, 2024 at 7:45:11 AM UTC-4 Edward K. Ream wrote: This Engineering Notebook post contains second thoughts about Trilium Notes. *Trilium's weaknesses* Trilium undervalues the power of text: I think that Edward does not appreciate how often users want to use Leo as an

Re: ENB: Seconds thoughts about Trilium Notes

2024-04-26 Thread Thomas Passin
On Friday, April 26, 2024 at 7:45:11 AM UTC-4 Edward K. Ream wrote: This Engineering Notebook post contains second thoughts about Trilium Notes. *tl;dr:* Leo might add only *incremental *improvements inspired by Trilium Notes. All fundamental aspects of Leo will remain as they are.

Re: A Leo relative in the wild: Trilium Notes

2024-04-25 Thread Thomas Passin
On Thursday, April 25, 2024 at 1:55:38 PM UTC-4 Thomas Passin wrote: On Thursday, April 25, 2024 at 1:25:21 PM UTC-4 Thomas Passin wrote: >From an architectural point of view, the current Leo editor widget could get replaced by a widget with several child widgets (a tabbed widget is

Re: A Leo relative in the wild: Trilium Notes

2024-04-25 Thread Thomas Passin
On Thursday, April 25, 2024 at 1:25:21 PM UTC-4 Thomas Passin wrote: >From an architectural point of view, the current Leo editor widget could get replaced by a widget with several child widgets (a tabbed widget is one possibility), of which one is the current editor widget, and most keybo

Re: A Leo relative in the wild: Trilium Notes

2024-04-25 Thread Thomas Passin
We are really on the same page here! On Thursday, April 25, 2024 at 12:39:33 PM UTC-4 Edward K. Ream wrote: On Thursday, April 25, 2024 at 6:57:17 AM UTC-5 Thomas wrote: Hmm, instead of rendering those nodes in a separate frame as VR/VR3 does, we could overlay the rendering frame over the

Re: A Leo relative in the wild: Trilium Notes

2024-04-25 Thread Thomas Passin
t objects, but to the user, the swap is > fairly seamless. > > I did write this app relying on PyQt5, unfortunately, so I have a fair bit > of updating to do if I want it to work on modern Leo. Ah well. > > Jake > > On Thu, Apr 25, 2024 at 8:10 AM Edward K. Ream wrote: >

Re: A Leo relative in the wild: Trilium Notes

2024-04-25 Thread Thomas Passin
See new issue Allow VR/VR3-style rendering overlaid on standard editing nodes <https://github.com/leo-editor/leo-editor/issues/3887>. On Thursday, April 25, 2024 at 8:10:51 AM UTC-4 Edward K. Ream wrote: > On Thu, Apr 25, 2024 at 6:57 AM Thomas Passin wrote: > >> Except that

Re: A Leo relative in the wild: Trilium Notes

2024-04-25 Thread Thomas Passin
Except that standard Leo nodes don't render graphics and other non-text items. That's a big difference. We get around it to a degree with VR/VR3. Hmm, instead of rendering those nodes in a separate frame as VR/VR3 does, we could overlay the rendering frame over the editing frame. We could

Re: Current Devel Branch Fails To Start Using Python 3.9

2024-04-24 Thread Thomas Passin
Lucky I've still got Python 3.9 on my machine! On Wednesday, April 24, 2024 at 11:02:34 AM UTC-4 Edward K. Ream wrote: > On Wed, Apr 24, 2024 at 9:30 AM Thomas Passin wrote: > >> py -3.9 -m leo.core.runLeo >> ... >>from leo.core import leoVim >> File &

Current Devel Branch Fails To Start Using Python 3.9

2024-04-24 Thread Thomas Passin
py -3.9 -m leo.core.runLeo ... from leo.core import leoVim File "C:\Tom\git\leo-editor\leo\core\leoVim.py", line 25, in from typing import Any, TypeAlias, TYPE_CHECKING ImportError: cannot import name 'TypeAlias' from 'typing' (C:\Program Files\Python39\lib\typing.py) This changeset

Re: Leo shortcut on windows fail with devel branch

2024-04-22 Thread Thomas Passin
You can see what would get installed with requirements.txt by adding the flag --dry-run. pip will go through the motions but not actually install anything. For example, I just ran py -m pip install -r requirements.txt --dry-run and got this report: Would install Send2Trash-1.8.3 cffi-1.16.0

Re: Leo shortcut on windows fail with devel branch

2024-04-21 Thread Thomas Passin
On Sunday, April 21, 2024 at 7:05:08 PM UTC-4 Félix wrote: After trying to simply install pyqt6, I get yet another error when trying to launch: *cannot import name 'QtWebEngineCore' from 'PyQt6'* It's in a separate package from PyQt6. Requirements.txt should get it installed. -- You

Re: Leo shortcut on windows fail with devel branch

2024-04-21 Thread Thomas Passin
py -m pip install -r requirements.txt On Sunday, April 21, 2024 at 9:05:10 PM UTC-4 Félix wrote: > Weird, i'm getting that -r is not an option... I'll investigate further... > [image: Untitled.png] > > > > On Sunday, April 21, 2024 at 8:55:57 PM UTC-4 Félix wrote: > >> Thanks Edward, >> >>

Re: First two bytes of 'stdout' are lost

2024-04-11 Thread Thomas Passin via Python-list
On 4/11/2024 8:42 AM, Olivier B. via Python-list wrote: I am trying to use StringIO to capture stdout, in code that looks like this: import sys from io import StringIO old_stdout = sys.stdout sys.stdout = mystdout = StringIO() print( "patate") mystdout.seek(0) sys.stdout = old_stdout

Re: MACOS M2 Ventura

2024-04-11 Thread Thomas Passin
ssue. > > geoff > > On Sunday 7 April 2024 at 05:39:32 UTC-2:30 Edward K. Ream wrote: > >> >> >> On Sat, Apr 6, 2024 at 6:27 AM Thomas Passin wrote: >> >>> Solved in >>> >>> >>> https://stackoverflow.com/questions/76898551/

Re: How to Add ANSI Color to User Response

2024-04-11 Thread Thomas Passin via Python-list
On 4/10/2024 6:41 PM, Alan Gauld via Python-list wrote: On 10/04/2024 19:50, WordWeaver Evangelist via Python-list wrote: I have a simple question. I use the following textPrompt in some of my Jython modules: '\nYour choice is? (A B C D E): ', maxChars=1, autoAccept=False,

Jon Udell On Using LLMs With Your Code Base To Help Write Documentation

2024-04-09 Thread Thomas Passin
Jon Udell's LLM saga continues - Code in Context: How AI Can Help Improve Our Documentation -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Thomas Passin via Python-list
On 4/8/2024 3:35 PM, Keith Thompson via Python-list wrote: Thomas Passin writes: On 4/8/2024 2:01 PM, Dietmar Schwertberger via Python-list wrote: To be sure, you can always go the the directory of the Python interpreter and open a cmd window there. (By entering 'cmd' into the explorer

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Thomas Passin via Python-list
On 4/8/2024 2:01 PM, Dietmar Schwertberger via Python-list wrote: To be sure, you can always go the the directory of the Python interpreter and open a cmd window there. (By entering 'cmd' into the explorer address bar.) Then enter 'python.exe -mpip install paramiko'. This way you can be sure

Re: MACOS M2 Ventura

2024-04-06 Thread Thomas Passin
Solved in https://stackoverflow.com/questions/76898551/qt-qpa-plugin-could-not-find-the-qt-platform-plugin-cocoa-in On Saturday, April 6, 2024 at 2:05:23 AM UTC-4 Edward K. Ream wrote: > On Mon, Apr 1, 2024 at 5:58 AM Geoff Evans wrote: > >> I've tried to get leo via pip: >> >> pip install

Re: Running issues

2024-04-05 Thread Thomas Passin via Python-list
On 4/5/2024 5:32 PM, shannon makasale via Python-list wrote: Hi there, My name is Shannon. I installed Python 3.12 on my laptop a couple months ago, but realised my school requires me to use 3.11.1. I uninstalled 3.12 and installed 3.11.1. Unfortunately, I am unable to run python now. It

Re: A technique from a chatbot

2024-04-04 Thread Thomas Passin via Python-list
On 4/4/2024 3:03 PM, Mark Bourne via Python-list wrote: Thomas Passin wrote: On 4/2/2024 1:47 PM, Piergiorgio Sartor via Python-list wrote: On 02/04/2024 19.18, Stefan Ram wrote:    Some people can't believe it when I say that chatbots improve    my programming productivity. So, here's

Re: Help Needed With a Python Gaming Module

2024-04-03 Thread Thomas Passin via Python-list
On 4/3/2024 3:06 PM, WordWeaver Evangelist via Python-list wrote: Hello everyone! It has been a l-o-n-g time -- nine years in fact --since I last participated on this mailing list. [snip] 3. You are very familiar with the Jython 2 environment, which I am told is based on Python 2 and NOT

Re: Script to expand toolbar

2024-04-03 Thread Thomas Passin
Better, I think: background-color: @text-foreground; This should work for any (dark) color theme. If you omit the #qt_toolbar_ext_button, the style will get applied to the menubar's "menu-indicator" also, as well as any other toolbar (yes, the menubar also has an overflow indicator, if you can

Re: Script to expand toolbar

2024-04-03 Thread Thomas Passin
It's not just a black background that hides it. There must be a css selector for it, mustn't there? On Wednesday, April 3, 2024 at 10:56:16 AM UTC-4 Edward K. Ream wrote: > On Wednesday, April 3, 2024 at 4:54:32 AM UTC-5 Edward K. Ream wrote: > > It took me a while to understand what the

Re: A technique from a chatbot

2024-04-03 Thread Thomas Passin via Python-list
On 4/3/2024 1:27 AM, AVI GROSS via Python-list wrote: I am a tad confused by a suggestion that any kind of GOTO variant is bad. The suggestion runs counter to the reality that underneath it all, compiled programs are chock full of GOTO variants even for simple things like IF-ELSE. Consider

Re: A technique from a chatbot

2024-04-02 Thread Thomas Passin via Python-list
On 4/2/2024 1:47 PM, Piergiorgio Sartor via Python-list wrote: On 02/04/2024 19.18, Stefan Ram wrote:    Some people can't believe it when I say that chatbots improve    my programming productivity. So, here's a technique I learned    from a chatbot!    It is a structured "break". "Break" still

Re: LeoJS Status Report & Video Demo/Tutorial

2024-03-31 Thread Thomas Passin
Felix, I appreciate all the work but I'm not able to work with the intro video. Everything happens too fast and I think you do some things that are not visible. For example, you somehow open a Preview pane that can render Markdown. I'd like to do that. I have to guess that you got to it by a

Re: I just had successful eye surgury

2024-03-28 Thread Thomas Passin
Sorry to hear this. Best wishes for a quick and full recovery! On Thursday, March 28, 2024 at 4:03:52 PM UTC-4 Edward K. Ream wrote: > A vitrectomy >

Re: Please test the ekr-2882-qt-only2 branch

2024-03-27 Thread Thomas Passin
I got the same results using the qt-only2 branch. On Wednesday, March 27, 2024 at 7:49:52 PM UTC-4 Thomas Passin wrote: > Oops, the last two were tested with devel, not the qt-only-2 branch.. > I'll have to go back and repeat the test. > > On Wednesday, March 27, 2024 at 3:57

Re: Please test the ekr-2882-qt-only2 branch

2024-03-27 Thread Thomas Passin
Oops, the last two were tested with devel, not the qt-only-2 branch.. I'll have to go back and repeat the test. On Wednesday, March 27, 2024 at 3:57:11 PM UTC-4 Thomas Passin wrote: > Some more Linux results: > ubuntu > nav, console ok. vr3 image problem > XUbuntu &

Re: Please test the ekr-2882-qt-only2 branch

2024-03-27 Thread Thomas Passin
Some more Linux results: ubuntu nav, console ok. vr3 image problem XUbuntu nav, console ok. vr3 image problem OpenSUSE needs libQt6WebEngineCore6, libQt6Quick6 After installing them, Leo still couldn't start. Those libQt6xx libraries were installed by

Re: Please test the ekr-2882-qt-only2 branch

2024-03-25 Thread Thomas Passin
related? On Monday, March 25, 2024 at 9:49:55 AM UTC-4 Edward K. Ream wrote: > On Mon, Mar 25, 2024 at 8:45 AM Thomas Passin wrote: > > Nav tab is missing on Debian, Python Console tab is missing on Linux >> Mint. No apparent error messages. >> > > Thanks for your testing!

Re: Please test the ekr-2882-qt-only2 branch

2024-03-25 Thread Thomas Passin
Nav tab is missing on Debian, Python Console tab is missing on Linux Mint. No apparent error messages. On Monday, March 25, 2024 at 9:25:25 AM UTC-4 Thomas Passin wrote: > What is Leo using QScintilla for? > > On Monday, March 25, 2024 at 9:21:00 AM UTC-4 Thomas Passin wrote: >

Re: Please test the ekr-2882-qt-only2 branch

2024-03-25 Thread Thomas Passin
What is Leo using QScintilla for? On Monday, March 25, 2024 at 9:21:00 AM UTC-4 Thomas Passin wrote: > That took care of the problem and the branch of Leo now runs on Ubuntu. > Also, VR3 opens. > > On Monday, March 25, 2024 at 9:05:18 AM UTC-4 Edward K. Ream wrote: > >>

Re: Please test the ekr-2882-qt-only2 branch

2024-03-25 Thread Thomas Passin
That took care of the problem and the branch of Leo now runs on Ubuntu. Also, VR3 opens. On Monday, March 25, 2024 at 9:05:18 AM UTC-4 Edward K. Ream wrote: > On Mon, Mar 25, 2024 at 7:47 AM Thomas Passin wrote: > >> Fails on Ubuntu: >> >> *cannot import name 'Qsci'

Re: Please test the ekr-2882-qt-only2 branch

2024-03-25 Thread Thomas Passin
Fails on Ubuntu: *cannot import name 'Qsci' from 'PyQt6' (/home/tom/.local/lib/python3.10/site-packages/PyQt6/__init__.py)* *** Leo could not be started *** Please verify you've installed the required dependencies: On Monday, March 25, 2024 at 7:37:36 AM UTC-4 Edward K. Ream wrote: > The

Re: About PR #3828: Require Qt6.6+

2024-03-24 Thread Thomas Passin
Every one of my fleet of Linux VMs has finally got PyQt 6.6, so that's favorable. No one can prove that *every* distro will have it - there are just too many variations - but so be it. I don't know about ARM versions and don't have a way to check, but I suppose they are still not a likely

Re: A Script To Insert An Image

2024-03-24 Thread Thomas Passin
h 24, 2024 at 8:24:47 AM UTC-4 Edward K. Ream wrote: > On Sun, Mar 24, 2024 at 7:01 AM Thomas Passin wrote: > >> Settings and headlines are not the same. >> > > At last I understand :-) As Thomas says, the syntax for settings nodes is > different from directives. &g

Re: A Script To Insert An Image

2024-03-24 Thread Thomas Passin
Settings and headlines are not the same. On Sunday, March 24, 2024 at 6:39:03 AM UTC-4 jkn wrote: > Hi Edward > I put the link (to a different part of the documentation) in an earlier > post: > https://leo-editor.github.io/leo-editor/customizing.html#simple-settings-nodes > > The section you

Re: A Script To Insert An Image

2024-03-23 Thread Thomas Passin
>>>>>> >>>>>>> >>>>>>> On Monday, March 11, 2024 at 8:10:03 PM UTC jkn wrote: >>>>>>> >>>>>>>> Has anyone played much with class QClipboard? I did a couple of >>>>>>>> trivial experiments but I m

Re: A Script To Insert An Image

2024-03-23 Thread Thomas Passin
gt;> So >>>>>> the script becomes: >>>>>> >>>>>> """Insert RsT code at cursor to display an image. >>>>>> >>>>>> The path to the image file will come from a file dialog. >>>>

Re: A Script To Insert An Image

2024-03-23 Thread Thomas Passin
uot;),], >>>> defaultextension=".*", >>>> multiple=False) >>>> >>>> if PATH: >>>> from os.path import relpath >>>> PATH = PATH.replace('"', '').replace("'", '') >>>> PAT

Re: Leo 6.7.8 released to pypi

2024-03-22 Thread Thomas Passin
I've tried out installing post3 on my fleet of Linux VMs. It succeeded on all of them although for some I had to add the pip install option *--break-system-packages. *After installation, there was a also new "leo" script that launched Leo. So it looks like all Edward's hard work has paid

Re: the name ``wheel''

2024-03-21 Thread Thomas Passin via Python-list
On 3/21/2024 4:19 PM, Grant Edwards via Python-list wrote: On 2024-03-21, MRAB via Python-list wrote: As it's recommended to use the Python Launcher py on Windows, I use that instead: py -m pip install something because it gives better support if you have multiple versions of Python

Re: Small puzzle: where is this focus-to-body action coming from?

2024-03-21 Thread Thomas Passin
On Thursday, March 21, 2024 at 2:02:50 PM UTC-4 jkn wrote: Nevertheless - other @shortcuts I have in myLeoSettings.leo are shown in the log output to 'show-commands' - why not this one? It's in there. My listings for Settings/Show Settings /Show Commands has it: Alt+d

Re: Small puzzle: where is this focus-to-body action coming from?

2024-03-21 Thread Thomas Passin
It's in LeoSettings.leo, in the node @shortcuts Gui operations. On Thursday, March 21, 2024 at 10:33:33 AM UTC-4 jkn wrote: > I keep meaning to look at 'improving' (for my needs) navigation between > Tree and body panes. Whilst taking a look at this again I found a puzzle. > > I have what is (I

Re: Leo 6.7.8.post1 is ready for testing

2024-03-20 Thread Thomas Passin
Aha! I didn't pick up on that because I always start Leo with python3 -m leo.core.runLeo. I do that instead of using a script fromt the Scripts directory because I don't let a new install of Python add those directories to the path. And I do *that* because I used to need the Python 2.7 Script

Re: Leo 6.7.8.post1 is ready for testing

2024-03-19 Thread Thomas Passin
ion is probably minimal since Leo doesn't seem to use packages in the system directories. If you already are using a venv for Leo, then there should be no problem with the install. On Tuesday, March 19, 2024 at 11:12:32 PM UTC-4 Thomas Passin wrote: Installed OK on Ubuntu 22.04, Python 3

Re: Leo 6.7.8.post1 is ready for testing

2024-03-19 Thread Thomas Passin
Installed OK on Ubuntu 22.04, Python 3.10. On Tuesday, March 19, 2024 at 10:31:46 PM UTC-4 Thomas Passin wrote: > python3 -m pip install --user --upgrade leo==6.7.8.post1 succeeded on > Linux Debian, although I had to install *libxcb-cursor0* afterwards, as > we've been seeing on s

Re: Leo 6.7.8.post1 is ready for testing

2024-03-19 Thread Thomas Passin
python3 -m pip install --user --upgrade leo==6.7.8.post1 succeeded on Linux Debian, although I had to install *libxcb-cursor0* afterwards, as we've been seeing on some other distros. After the install: Leo 6.7.8.post1 Python 3.9.2, PyQt version 6.6.2 linux On Tuesday, March 19, 2024 at

Re: ENB: Distribution challenges

2024-03-19 Thread Thomas Passin
On Monday, March 18, 2024 at 5:43:22 PM UTC-4 Edward K. Ream wrote: This Engineering Notebook post briefly summarizes the challenges in distributing Leo on pypi. *I would greatly appreciate help debugging either PR*. My *guess* is that pyproject.toml needs only a tweak, but finding that

Re: Leo 6.7.8 released, but not to PyPi

2024-03-18 Thread Thomas Passin
Then there's the brute force method - get the zip file from github, unzip it, and copy the leo directory into the user's site-packages directory. To be thorough, one should delete the dist-info directory for Leo. I don't know if venv would get this version when setting up a venv, though.

Re: Discuss: Leo 6.7.8 will install only PyQt6

2024-03-17 Thread Thomas Passin
e desired, in general. > > https://pkgs.org/download/libxcb-cursor.so.0()(64bit) > > Hope this helps! > Jake > > On Mar 17, 2024, at 3:45 PM, Viktor Ransmayr wrote: > >  > > Hello Thomas, > > Am So., 17. März 2024 um 15:41 Uhr schrieb Thomas Passin < > tb

Re: Discuss: Leo 6.7.8 will install only PyQt6

2024-03-17 Thread Thomas Passin
Try the other suggested library in the error message: xcb-cursor0 . I went through the same thing about a week ago on a different distro, and using the alternate suggestion solved it. If that doesn't work either, run an internet search for "fedora qt.qpa.plugin: From 6.5.0, xcb-cursor0 or

Re: Configuring an object via a dictionary

2024-03-16 Thread Thomas Passin via Python-list
On 3/16/2024 8:12 AM, Roel Schroeven via Python-list wrote: Barry via Python-list schreef op 16/03/2024 om 9:15: > On 15 Mar 2024, at 19:51, Thomas Passin via Python-list   wrote: > > I've always like writing using the "or" form and have never gotten bit I, on the oth

Re: Configuring an object via a dictionary

2024-03-15 Thread Thomas Passin via Python-list
On 3/15/2024 5:33 PM, Dan Sommers via Python-list wrote: On 2024-03-15 at 15:48:17 -0400, Thomas Passin via Python-list wrote: [...] And I suppose there is always the possibility that sometime in the future an "or" clause like that will be changed to return a Boolean, which one wo

Re: Configuring an object via a dictionary

2024-03-15 Thread Thomas Passin via Python-list
On 3/15/2024 3:09 PM, Grant Edwards via Python-list wrote: On 2024-03-15, Thomas Passin via Python-list wrote: On 3/15/2024 5:30 AM, Loris Bennett via Python-list wrote: Hi, I am initialising an object via the following: def __init__(self, config): self.connection = None

Re: Configuring an object via a dictionary

2024-03-15 Thread Thomas Passin via Python-list
On 3/15/2024 5:30 AM, Loris Bennett via Python-list wrote: Hi, I am initialising an object via the following: def __init__(self, config): self.connection = None self.source_name = config['source_name'] self.server_host = config['server_host']

Re: A Script To Insert An Image

2024-03-11 Thread Thomas Passin
de' undoData = u.beforeChangeNodeContents(p) head, tail = s[:start], s[start:] p.b = head + IMAGE_TEMPLATE + tail c.setChanged() p.setDirty() u.afterChangeNodeContents(p, undoType, undoData) c.redraw() On Saturday, March 9, 2024 at 2:04:19 PM UTC-5 Thomas Passin wrote:

Re: pathlib.Path.is_file vs os.path.isfile difference

2024-03-10 Thread Thomas Passin via Python-list
On 3/10/2024 9:33 AM, Albert-Jan Roskam wrote: On Mar 10, 2024 12:59, Thomas Passin via Python-list wrote: On 3/10/2024 6:17 AM, Barry wrote: > > >> On 8 Mar 2024, at 23:19, Thomas Passin via Python-list wrote: >> >> We just

Re: pathlib.Path.is_file vs os.path.isfile difference

2024-03-10 Thread Thomas Passin via Python-list
On 3/10/2024 6:17 AM, Barry wrote: On 8 Mar 2024, at 23:19, Thomas Passin via Python-list wrote: We just learned a few posts back that it might be specific to Linux; I ran it on Windows. Depending on the exact win32 api used there is a 257 limit on windows. The 257 includes 2

Re: LeoJS - How To Write To File System And Run External Programs

2024-03-09 Thread Thomas Passin
I don't know if you got around to thinking about it yet (you've got so much else going on!), but the command I wrote to run external files is in LeoPyRef and it's called *execute-external-file*. It has some trickiness because it has to run on Linux as well as Windows, and the terminal

Re: ✨LeoJS beta 0.2.12 Released!

2024-03-09 Thread Thomas Passin
A great achievement, Felix! So much work, too! I see this update isn't in the marketplace for vscodium yet. Coming soon, I imagine? It updated successfully in VScode. On Saturday, March 9, 2024 at 9:40:56 PM UTC-5 Félix wrote: > Introducing LeoJS Beta 0.2.12 > Félix here, ecstatic to

Re: A Script To Insert An Image

2024-03-09 Thread Thomas Passin
Yup, Terry Brown has already done most of it for us in the screen_capture plugin. Here's the docstring: """ screen_capture.py = Capture screen shots - single frames are useful. The `Recorder` class can also capture frames continuously but that's not really useful, it doesn't

Re: A Script To Insert An Image

2024-03-09 Thread Thomas Passin
I seem to remember that somewhere in the code base, Leo code to capture the screen has already been worked out. If that's the case we're in clover. On Saturday, March 9, 2024 at 3:09:24 PM UTC-5 jkn wrote: > The way I have been using the Obsidian feature is to paste image bytes > (eg. from a

Re: A Script To Insert An Image

2024-03-09 Thread Thomas Passin
Shouldn't be hard. What would be on the clipboard? Image bytes? Or an image filename? I often select an image in a file manager window, copy it to an "images" subdirectory of the current outline, then write the embedding code into and "images" child node. That would be easy to write a

A Script To Insert An Image

2024-03-09 Thread Thomas Passin
We can't directly insert an image into a standard Leo node because they are text-only. I find this very annoying sometimes, especially when I am writing a note and want to include an image. But we can do the next best thing - insert an ReStructuredText (RsT) instruction to display an image

Re: pathlib.Path.is_file vs os.path.isfile difference

2024-03-08 Thread Thomas Passin via Python-list
On 3/8/2024 5:14 PM, Albert-Jan Roskam wrote: On Mar 8, 2024 19:35, Thomas Passin via Python-list wrote: On 3/8/2024 1:03 PM, Albert-Jan Roskam via Python-list wrote: > Hi, > I was replacing some os.path stuff with Pathlib and I discovered this: >

Re: pathlib.Path.is_file vs os.path.isfile difference

2024-03-08 Thread Thomas Passin via Python-list
On 3/8/2024 2:21 PM, Grant Edwards via Python-list wrote: On 2024-03-08, Thomas Passin via Python-list wrote: On 3/8/2024 1:03 PM, Albert-Jan Roskam via Python-list wrote: Hi, I was replacing some os.path stuff with Pathlib and I discovered this: Path(256 * "x"

Re: pathlib.Path.is_file vs os.path.isfile difference

2024-03-08 Thread Thomas Passin via Python-list
On 3/8/2024 1:03 PM, Albert-Jan Roskam via Python-list wrote: Hi, I was replacing some os.path stuff with Pathlib and I discovered this: Path(256 * "x").is_file() # OSError os.path.isfile(256 * "x") # bool Is this intended? Does pathlib try to resemble os.path as closely as

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Thomas Passin via Python-list
On 3/6/2024 7:55 AM, Jacob Kruger via Python-list wrote: Ok, simpler version - all the code in a simpler test file, and working with two separate variables to explain exactly what am talking about: # start code from datetime import datetime, timezone, timedelta from copy import copy #

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Thomas Passin via Python-list
On 3/6/2024 5:59 AM, Alan Gauld via Python-list wrote: On 05/03/2024 22:46, Grant Edwards via Python-list wrote: Unfortunately (presumably thanks to SEO) the enshittification of Google has reached the point where searching for info on things like Python name scope, the first page of links are

Re: FYI: Simplified installation instructions

2024-03-03 Thread Thomas Passin
can have one button for each script. I've developed this way of generating Sphinx documentation over many years and iterations and it's the one I like best so far. Give it try and see it it works for you! On Sunday, March 3, 2024 at 4:23:36 PM UTC-5 Thomas Passin wrote: > I don't know ab

Re: FYI: Simplified installation instructions

2024-03-03 Thread Thomas Passin
I don't know about a "gentle" introduction, but VR3 has an extensive docstring you can read by means of the Plugins menu. I use Sphinx a lot, and normally I don't even create a Sphinx configuration file. I find I can do enough configuration for my needs with command-line parameters, which I

Re: .csv Importer Is Specialized For MindManager Export Files

2024-03-02 Thread Thomas Passin
-5 Edward K. Ream wrote: > On Fri, Mar 1, 2024 at 8:33 PM Thomas Passin wrote: > >> The process for importing any file delegates .csv files to files exported >> the MindJet's MindManager program. Using it to import ordinary tabular .csv >> data produces unusable result

.csv Importer Is Specialized For MindManager Export Files

2024-03-01 Thread Thomas Passin
The process for importing any file delegates .csv files to files exported the MindJet's MindManager program. Using it to import ordinary tabular .csv data produces unusable results on the samples I tried today. I Most .csv files contain tabular data and, in my view, should be imported as text

Re: Discuss: Leo 6.7.8 will install only PyQt6

2024-03-01 Thread Thomas Passin
On Friday, March 1, 2024 at 5:33:34 AM UTC-5 Edward K. Ream wrote: My question wasn't clear. I meant to ask whether potential errors concerning the missing xcb-cursor0 or libxcb-cursor0 libraries are a show stopper. Imo, most linux users will know to run sudo apt install, so the missing

Re: Discuss: Leo 6.7.8 will install only PyQt6

2024-02-29 Thread Thomas Passin
was basically Red Hat, but I don't think that's quite true any more. Maybe someone else reading this will know more? On Thursday, February 29, 2024 at 10:55:55 AM UTC-5 Edward K. Ream wrote: > On Thu, Feb 29, 2024 at 9:46 AM Thomas Passin wrote: > >> So far all the distros I have checked do

Re: Discuss: Leo 6.7.8 will install only PyQt6

2024-02-29 Thread Thomas Passin
So far all the distros I have checked do now support pyqt6: Ubuntu/XUbuntu Debian OpenSuSE Fedora Manjaro Mint These are all the distros I've got VMs for. On Thursday, February 29, 2024 at 10:32:12 AM UTC-5 Edward K. Ream wrote: > On Thu, Feb 29, 2024 at 9:25 AM Edward K. Ream wrote: > > >

Heads Up - Malicious Git Forks

2024-02-29 Thread Thomas Passin
See This Slashdot story - GitHub Besieged By Millions of Malicious Repositories In Ongoing Attack -- You received this message

Re: Discuss: Leo 6.7.8 will install only PyQt6

2024-02-29 Thread Thomas Passin
I think that whether we can require pyqt6 should depend on whether it can be installed on a particular flavor of Linux. That didn't used to be the case, but it may be now. It is available on Ubuntu/XUbuntu, and probably on most Ubuntu-derived distros. *However,* Leo won't run after

Re: Problem resizing a window and button placement

2024-02-26 Thread Thomas Passin via Python-list
On 2/26/2024 6:02 AM, Steve GS via Python-list wrote: Although your code produces the value of Ww outside the function, I do not see how I can use the value of Ww unless I close the program. The configuration event hasn't fired at the time you include the print statement in the handler's def

Re: Problem resizing a window and button placement

2024-02-25 Thread Thomas Passin via Python-list
On 2/25/2024 4:19 PM, Steve GS via Python-list wrote: SOLUTION FOUND! The fix was to write the code that uses the width value and to place it into the function itself. Kluge? Maybe but it works. Right, just what I wrote earlier: "have the function that responds to the resize event perform

Re: Problem resizing a window and button placement

2024-02-24 Thread Thomas Passin via Python-list
On 2/24/2024 9:51 PM, Steve GS via Python-list wrote: First of all, please make sure that the formatting is readable and especially the indentation. This is Python, after all. Do not use tabs; use 3 or 4 spaces instead of each tab. import tkinter as tk #global Ww Neither global helps def

Re: Problem resizing a window and button placement

2024-02-24 Thread Thomas Passin via Python-list
On 2/24/2024 3:20 AM, Steve GS via Python-list wrote: Yes, I ran that elegantly simple code. The print statement reports the X, Y, Height and Width values. However, I do not see how to capture the width value. I experimented with the code Vwidth = rootV.winfo_width() and it also reports the

Re: Testing (sorry)

2024-02-19 Thread Thomas Passin via Python-list
On 2/19/2024 11:55 AM, Skip Montanaro wrote: Here is a typical bounce message that I get: mailto:python-list@python.org>>: host mail.python.org [188.166.95.178] said: 450-4.3.2      Service currently unavailable 450 4.3.2 Some time after I get

Re: Testing (sorry)

2024-02-19 Thread Thomas Passin via Python-list
On 2/19/2024 9:17 AM, Grant Edwards via Python-list wrote: On 2024-02-19, Thomas Passin wrote: About 24 hours later, all of my posts (and the confirmation e-mails) all showed up in a burst at the same time on two different unrelated e-mail accounts. I still have no clue what was going

Re: Testing (sorry)

2024-02-18 Thread Thomas Passin via Python-list
On 2/18/2024 6:09 PM, Grant Edwards via Python-list wrote: On 2024-02-18, Peter J. Holzer via Python-list wrote: [Replying to the list *and* Grant] On 2024-02-17 19:38:04 -0500, Grant Edwards via Python-list wrote: Today I noticed that nothing I've posted to python-list in past 3 weeks has

Re: Leo's PyPi page will remain

2024-02-16 Thread Thomas Passin
On WIndows, installing pyqtx does not require a separate installation of Qt - apparently all the binaries needed are packaged with pyqyx. From your error message, on the Mac it seems that you need to install Qt itself, apart from any Python installation. If Qt has already been installed,

Interesting Post On Retiring An API

2024-02-16 Thread Thomas Passin
>From The Old New Thing - If you’re just going to sit there doing nothing, at least do nothing correctly -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this

Re: Leo's PyPi page will remain

2024-02-11 Thread Thomas Passin
I don't know for sure about the Mac (why it would be different, I mean), but you want to install "pyqt6", not "qt". You should also install "PyQt6-WebEngine", for the ViewRendered3 plugin to work completely. I don't know if that has finally gotten into the requirements list or not. On

Re: PR 3774 completes the 6.7.8 code base

2024-02-05 Thread Thomas Passin
On my Manjaro VM only three were skipped - one importer, one speller, one in leoAst. 928 passed, 3 skipped in 11.53s I wonder if something isn't installed on the XUBuntu VM, like a language or something else outside of Leo itself. On Monday, February 5, 2024 at 1:09:34 PM UTC-5 Thomas Passin

Re: PR 3774 completes the 6.7.8 code base

2024-02-05 Thread Thomas Passin
OK, doing it that way on XUbuntu gave no errors but many more skipped tests than on Windows (Windows skipped two importer tests): 905 passed, 26 skipped in 8.59s On Sunday, February 4, 2024 at 6:21:18 PM UTC-5 Edward K. Ream wrote: > On Saturday, February 3, 2024 at 9:00:57 AM UTC-6 Thomas

Re: PR 3774 completes the 6.7.8 code base

2024-02-04 Thread Thomas Passin
On Linux/Manjaro there is the same warning, but it only skipped 3 tests instead of 26. It too a few seconds longer than on XUbuntu. On Sunday, February 4, 2024 at 2:41:44 PM UTC-5 Thomas Passin wrote: > For the recent merge in devel, 08fcbac60bc296b2e636c3467daf29022b03231b, > there is

Re: PR 3774 completes the 6.7.8 code base

2024-02-04 Thread Thomas Passin
=== Interesting how much faster the tests run in Linux than Windows. On Sunday, February 4, 2024 at 3:38:37 AM UTC-5 Edward K. Ream wrote: > On Sat, Feb 3, 2024 at 9:01 AM Thomas Passin wrote: > >> On Windows 10, Python 3.12 - > > leo\plugins\leo_babel\tests\lib_test.py:118 >> C:\Tom\gi

Re: Extract lines from file, add to new files

2024-02-03 Thread Thomas Passin via Python-list
On 2/3/2024 5:02 PM, dn via Python-list wrote: Every trainer, in any field, has to deal with these problems - all the time, and over-and-over. On 4/02/24 06:58, Thomas Passin via Python-list wrote: In my view this whole thread became murky and complicated because the OP did not write down

  1   2   3   4   5   6   7   8   9   10   >