Leo on FreeBSD

2018-10-29 Thread Chris George
I am trying to see if Leo will run on FreeBSD. So far, so excellent. Python rocks. Python 2.7.15, PyQt version 5.10.1 Python 3.6.6, PyQt version 4.8.7 freeBSD12 isPython3: True I expect gotchas in the future but this will allow me to move my life away from Linux. Chris -- You received

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: Recommended place to store common functions?

2018-10-29 Thread Edward K. Ream
On Mon, Oct 29, 2018 at 10:19 AM Sapphira Armageddos wrote: Hello Sapphira. Welcome aboard. what's considered best coding practice for storing Leo specific python code > that I'd reuse elsewhere? > Good question. There are several ways to reuse code: 1. You can define abbreviations. This

Recommended place to store common functions?

2018-10-29 Thread Sapphira Armageddos
Hi everyone! Been using Leo for a while and I love it. One thing that alludes me is - what's considered best coding practice for storing Leo specific python code that I'd reuse elsewhere? For instance, sometimes I have outline specific commands that make call the undoer to make undoing easier.

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