Re: Embedding An External Program In Leo - Proof Of Principle

2024-10-11 Thread HaveF HaveF
On Thursday, September 12, 2024 at 7:30:31 AM UTC+8 tbp1...@gmail.com wrote: Here is a screen shot of the corrected version of the embedded calculator program. Notice that the calculator's native menu is now available, which is a pleasant improvement. In this version, the calculator program onl

Re: Embedding An External Program In Leo - Proof Of Principle

2024-10-11 Thread Thomas Passin
By "embedding" here, I mean that we take a non-Qt program window and embed it into a certain kind of Qt widget. Then we can put that widget where ever we want in our Qt program. Side by side, whatever. With a Qt widget A, we can attach it to another one, B, like a splitter, by making B be the

Re: Embedding An External Program In Leo - Proof Of Principle

2024-10-11 Thread HaveF HaveF
On Sat, Oct 12, 2024 at 10:07 AM Thomas Passin wrote: > By "embedding" here, I mean that we take a non-Qt program window and embed > it into a certain kind of Qt widget. Then we can put that widget where > ever we want in our Qt program. Side by side, whatever. With a Qt widget > A, we can att

Re: ENB: comparing the Rust and Python tokenizers.

2024-10-11 Thread Zoom.Quiet
Edward K. Ream 于2024年10月11日周五 19:01写道: > > The file tbo-in-rust.leo (in my ekr-tbo-in-rust repo) now contains the > sources for the Rust and Python tokenizers, as shown by Leo's import > commands. This work concludes (for now) my work with Rust. > > > As you may recall, Python's tokenizer is muc

Re: Capabilities of the 'restart-leo' command ?

2024-10-11 Thread Viktor Ransmayr
Hello Thomas, tbp1...@gmail.com schrieb am Donnerstag, 10. Oktober 2024 um 22:40:01 UTC+2: I don't think existing commands and menus get updated by closing and re-opening an outline. Commands and Menus created in a settings tree in the outline might update, but I'm not sure about that. On Thur

Re: Capabilities of the 'restart-leo' command ?

2024-10-11 Thread Thomas Passin
I don't think you can use the changed code without restarting Leo. There is a lot of code initialized and running in Leo that's needed just to open an outline. That wouldn't pick up the changes when an outline gets opened. Leo itself has to be restarted, as you've noticed. On Friday, October 1

Re: Capabilities of the 'restart-leo' command ?

2024-10-11 Thread Edward K. Ream
On Fri, Oct 11, 2024 at 4:17 PM Thomas Passin wrote: > I don't think you can use the changed code without restarting Leo. And that's what restart-leo does. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group

Re: Capabilities of the 'restart-leo' command ?

2024-10-11 Thread Edward K. Ream
On Thu, Oct 10, 2024 at 3:40 PM Thomas Passin wrote: > I don't think existing commands and menus get updated by closing and > re-opening an outline. Commands and Menus created in a settings tree in the > outline might update, but I'm not sure about that. > restart-leo reports (in the console) wh

Re: Embedding An External Program In Leo - Proof Of Principle

2024-10-11 Thread Edward K. Ream
On Thu, Oct 10, 2024 at 3:37 PM Thomas Passin wrote: > I think they got it working with Qt6 too. I haven't been able to tell > from their web site. There could be another way forward, too. NeoVim has a > Python API, and it also has a remote API system. If we were to embed a > stock NeoVim wind

Re: ENB: comparing the Rust and Python tokenizers.

2024-10-11 Thread Thomas Passin
On Friday, October 11, 2024 at 8:43:25 AM UTC-4 Zoom.Quiet wrote: That's why it is said: Python is just a friendly DSL of C language This is far off the mark I can't believe anyone wrote it. If you wrote that Forth is just a DSL of assembler you would be closer to the mark. Python could be

Re: ENB: comparing the Rust and Python tokenizers.

2024-10-11 Thread Edward K. Ream
On Fri, Oct 11, 2024 at 7:43 AM Zoom.Quiet wrote: Thanks for your comments :-) That's why it is said: > Python is just a friendly DSL of C language > Python is way more than "just" a DSL. Python is a work of genius because of its simplicity. 5-year-olds can (and have) successfully programmed i

Re: ENB: comparing the Rust and Python tokenizers.

2024-10-11 Thread Zoom.Quiet
Edward K. Ream 于2024年10月11日周五 21:37写道: ... > >> So, Leo's use of Rust may not bring about a qualitative improvement, >> but learning and using Rust is a good experience. > > > Yes, that's why I studied Rust. > after learned Rust, should learnning Zig, will know which one is the future C ;-) PS:

Re: ENB: comparing the Rust and Python tokenizers.

2024-10-11 Thread Edward K. Ream
On Fri, Oct 11, 2024 at 8:45 AM Zoom.Quiet wrote: should learnning Zig, will know which one is the future C ;-) > ... > goplus/llgo: A Go compiler based on LLVM in order to better integrate > Go with the C ecosystem including Python > https://github.com/goplus/llgo > can easy usage py in go, >

ENB: comparing the Rust and Python tokenizers.

2024-10-11 Thread Edward K. Ream
The file tbo-in-rust.leo (in my ekr-tbo-in-rust repo) now contains the sources for the Rust and Python tokenizers, as shown by Leo's import commands. This work concludes (for now) my work with Rust. As you may recall, Python's tokenizer is much