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: 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 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 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: Embedding An External Program In Leo - Proof Of Principle

2024-10-10 Thread Thomas Passin
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 window into a Qt widget, we could communicate with it over this

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

2024-10-10 Thread Edward K. Ream
On Thu, Oct 10, 2024 at 2:07 PM Thomas Passin wrote: > NeoVim has a NeoVim Python API > . I could picture > embedding an instance like I did with the calculator program and have Leo > use its Python API. > Care to have a go? Do you think Qt5

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

2024-10-10 Thread Edward K. Ream
On Thu, Oct 10, 2024 at 1:24 PM Thomas Passin wrote: > There is a NeoVim-Qt so someone has figured it out - > > NeoVim-Qt > Cool. Maybe Vim-in-Leo is feasible! But it appears to require Qt5. Edward -- You received this message because you are subscribe

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

2024-10-10 Thread Thomas Passin
NeoVim has a NeoVim Python API . I could picture embedding an instance like I did with the calculator program and have Leo use its Python API. On Thursday, October 10, 2024 at 2:24:24 PM UTC-4 Thomas Passin wrote: > There is a NeoVim-Qt so

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

2024-10-10 Thread Thomas Passin
There is a NeoVim-Qt so someone has figured it out - NeoVim-Qt On Thursday, October 10, 2024 at 11:09:47 AM UTC-4 Edward K. Ream wrote: > On Thu, Oct 10, 2024 at 8:41 AM Thomas Passin wrote: > > I don't know NeoVim at all. If it's a program that runs in

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

2024-10-10 Thread Edward K. Ream
On Thu, Oct 10, 2024 at 8:41 AM Thomas Passin wrote: I don't know NeoVim at all. If it's a program that runs in its own window > it can probably be encapsulated into a Qt widget. The issue will be to get > communication between Leo and the encapsulated window. The calculator > program I used di

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

2024-10-10 Thread Thomas Passin
I don't know NeoVim at all. If it's a program that runs in its own window it can probably be encapsulated into a Qt widget. The issue will be to get communication between Leo and the encapsulated window. The calculator program I used didn't need to communicate with Leo at all. On Thursday, Oc

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

2024-10-10 Thread Edward K. Ream
On Sun, Sep 8, 2024 at 8:19 AM Thomas Passin wrote: > I have been able to embed an external (non-Leo, non-Python) application in > a Leo window. Thanks for this work! It's way cool. I'm not sure what kinds of external programs will be useful this way. > Wouldn't it be great if Leo could commu

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

2024-09-22 Thread Edward K. Ream
On Sun, Sep 8, 2024 at 8:19 AM Thomas Passin wrote: > I have been able to embed an external (non-Leo, non-Python) application in > a Leo window. Thanks for this. I'll say more about this project later. Edward -- You received this message because you are subscribed to the Google Groups "leo-

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

2024-09-11 Thread jkn
OT-ish: that view of the HP42s ('Free42' or whatever) looks an awful lot better there than it does on my android phone, for some reason... On Wednesday, September 11, 2024 at 4:43:58 AM UTC+1 tbp1...@gmail.com wrote: > I have solved the problem of the calculator not getting keypresses, and >

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

2024-09-10 Thread Thomas Passin
I have solved the problem of the calculator not getting keypresses, and let me tell you it was tricky. The problem is that Windows does not know that Qt thinks that *it* (Qt) is managing the focus. Instead, The OS feeds mouse events directly to the calculator when it is visibly on top. But it