Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Terry Brown
On Tue, 30 Oct 2018 12:16:34 -0500 "Edward K. Ream" wrote: > I've gotten the first few Flexx examples working.  The widgets look > ugly, but perhaps that will not be an issue in the long run... I'm not sure how that will play out, for example can you integrate Flexx with other layers like

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Edward K. Ream
On Tue, Oct 30, 2018 at 12:14 PM Terry Brown wrote: > What framework do you prefer? > ... > Flexx uses web-sockets by default / exclusively, so it's probably going > to be the most solid there. > That seems important. Flexx's approach is idiosyncratic enough that you're probably stuck > with

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Edward K. Ream
On Tue, Oct 30, 2018 at 12:11 PM Offray Vladimir Luna Cárdenas wrote: > From my Python times, I liked a lot web2py[1] as a full stack python based > but easy and self-contained web framework. Bottle and Flask would be my > alternatives for minimal web frameworks. > > [1] http://web2py.com/ >

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Terry Brown
On Tue, 30 Oct 2018 11:50:12 -0500 "Edward K. Ream" wrote: > On Tue, Oct 30, 2018 at 11:07 AM Terry Brown > wrote: > > I do wonder if it's necessary to include development of a websockets > > layer in LeoWapp. Maintenance burden, complexity, all that. > > > > Flexx is a Python framework that

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Offray Vladimir Luna Cárdenas
On 10/30/18 11:50 AM, Edward K. Ream wrote: > On Tue, Oct 30, 2018 at 11:07 AM Terry Brown > wrote: > > I do wonder if it's necessary to include development of a websockets > layer in LeoWapp.  Maintenance burden, complexity, all that. > > Flexx is a

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Edward K. Ream
On Tue, Oct 30, 2018 at 11:07 AM Terry Brown wrote: I do wonder if it's necessary to include development of a websockets > layer in LeoWapp. Maintenance burden, complexity, all that. > > Flexx is a Python framework that uses websockets, there are probably > others. > > Also there a lots of web

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Terry Brown
On Tue, 30 Oct 2018 08:51:18 -0700 (PDT) "Edward K. Ream" wrote: > On Tuesday, October 30, 2018 at 5:54:39 AM UTC-5, Edward K. Ream > wrote: > > It's troubling to disable security checks, even temporarily. I'm a > bit > > surprised that such matters weren't mentioned in the websockets > >

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Edward K. Ream
On Tuesday, October 30, 2018 at 5:54:39 AM UTC-5, Edward K. Ream wrote: It's troubling to disable security checks, even temporarily. I'm a bit > surprised that such matters weren't mentioned in the websockets > documentation . > The

Re: LeoWapp will use WebSockets and Python 3

2018-10-30 Thread Edward K. Ream
On Monday, October 29, 2018 at 11:11:17 AM UTC-5, Edward K. Ream wrote: The next step will be to look at using a javascript client in the browser. > On Windows and Mozilla, the browser-based example does work,

Re: LeoWapp will use WebSockets and Python 3

2018-10-29 Thread Edward K. Ream
On Monday, October 29, 2018 at 11:06:38 AM UTC-5, Edward K. Ream wrote: the client.py and server.py shown here > do > work...I'll see what happens on Windows. > Hurray! Works just fine on Windows 10. The next step will be to look

Re: LeoWapp will use WebSockets and Python 3

2018-10-29 Thread Edward K. Ream
On Mon, Oct 29, 2018 at 9:05 AM Edward K. Ream wrote: > I have not had any joy with various basic WebSockets examples on Windows. Some of the basic python-only examples don't seem to do anything on Ubuntu. Happily, the client.py and server.py shown here

Re: LeoWapp will use WebSockets and Python 3

2018-10-29 Thread Edward K. Ream
On Mon, Oct 29, 2018 at 7:47 AM Terry Brown wrote: > > https://github.com/flexxui/flexx > provides websocket based Python browser GUI connections. > John Lunzer pointed it out here: > https://github.com/leo-editor/leo-editor/issues/338#issuecomment-289618411 > > I've been using it in my recent

Re: LeoWapp will use WebSockets and Python 3

2018-10-29 Thread Terry Brown
https://github.com/flexxui/flexx provides websocket based Python browser GUI connections. John Lunzer pointed it out here: https://github.com/leo-editor/leo-editor/issues/338#issuecomment-289618411 I've been using it in my recent (non-Leo) experiments in this area. Cheers -Terry On Mon, 29

LeoWapp will use WebSockets and Python 3

2018-10-29 Thread Edward K. Ream
Yesterday I started work in earnest on the leowapp.py plugin. The gui work is complete for now: the web page contains the outline, body and log panes and the minibuffer. Attempting two-way communication encountered a roadblock. Putting "require(http)" in a client-side script fails with the