Re: The new body editor

2014-09-08 Thread Edward K. Ream
On Sun, Sep 7, 2014 at 8:39 PM, 'Terry Brown' via leo-editor wrote: > Wow, quite the revolution in the short time I was away :-) Welcome back :-) The code is cleaner, and some of the never-used calls in the api are gone, but the widget code still presents the same (inter) face to Leo's core. S

qscintilla

2014-09-08 Thread 'Terry Brown' via leo-editor
How can you tell if qscitilla is active? I have @bool qt-use-scintilla = True and from PyQt4 import QtGui,Qsci succeeds, but otherwise I see no difference - perhaps that's because it's working so well? :) Cheers -Terry -- You received this message because you are subscribed to the Google Group

Prospects for using Scintilla in Leo: oh, the ironies

2014-09-08 Thread Edward K. Ream
This is a long, detailed post. It's not an Engineering Notebook post because it may be of general interest. I hope to get comments from the usual suspects. I have spent several pleasant days making the Scintilla widget pretty much fully functional. In the process, I have learned enough about

Re: qscintilla

2014-09-08 Thread Edward K. Ream
On Mon, Sep 8, 2014 at 8:55 AM, 'Terry Brown' via leo-editor wrote: > How can you tell if qscitilla is active? On my machines, you will see a light gray border, maybe 2 pixels, on the left. Or you could print c.frame.body.wrapper.widget ;-) Edward -- You received this message because you are

Re: Prospects for using Scintilla in Leo: oh, the ironies

2014-09-08 Thread 'Terry Brown' via leo-editor
On Mon, 8 Sep 2014 08:29:16 -0700 (PDT) "Edward K. Ream" wrote: > Now that Scintilla does not seem much of a "salvation", we must, > somehow, work around the QTextEdit loss-of-data bug that Terry's > benchmark script implicitly demonstrates. My full bug report is: > https://bugreports.qt-projec

Re: Prospects for using Scintilla in Leo: oh, the ironies

2014-09-08 Thread Edward K. Ream
On Mon, Sep 8, 2014 at 10:39 AM, 'Terry Brown' via leo-editor wrote: > On Mon, 8 Sep 2014 08:29:16 -0700 (PDT) > "Edward K. Ream" wrote: >> My full bug report is: >> https://bugreports.qt-project.org/browse/QTBUG-41153 > > Will be interesting to see how they respond to that - does the bug > exis

Re: The new body editor

2014-09-08 Thread Edward K. Ream
On Monday, September 8, 2014 8:25:49 AM UTC-5, Edward K. Ream wrote: > > On Sun, Sep 7, 2014 at 8:39 PM, 'Terry Brown' via leo-editor > > The major drawback of those is that they use plain plain text editors, > and not Leo body > > editors. free_layout should be able to completely replace the

Re: The new body editor

2014-09-08 Thread Kent Tenney
I'll mention a perennial wishlist item: - persistent multiple editors I vaguely recall that Terry's stuff can provide that feature if I correctly write out the state and reload it next session. That's too much for my little brain to remember, but if that capability exists, could it be registered w

Re: The new body editor

2014-09-08 Thread 'Terry Brown' via leo-editor
On Mon, 8 Sep 2014 13:21:02 -0500 Kent Tenney wrote: > I'll mention a perennial wishlist item: > - persistent multiple editors > > I vaguely recall that Terry's stuff can provide that feature if I > correctly write out the state and reload it next session. Not really - I think there was some cod

Some smallish cleanups: one level of indirection is enough!

2014-09-08 Thread Edward K. Ream
I've just pushed a cleanup of Leo's qt tree code in qt_tree.py. The new code eliminates the the BaseNativeTreeWidget class and moves all the functional code from the BaseNativeTreeWidget class to the LeoQtTree class, eliminating code that existed only to be over-ridden. Sheesh. LeoQtTree is

Re: The new body editor

2014-09-08 Thread Edward K. Ream
On Monday, September 8, 2014 2:49:29 PM UTC-5, Terry wrote: > Basically we need the body editor to not be a singleton thing, and then free_layout can do all kinds of things, including persistent multiple editors. Sounds like Edward's looking into the possibilities again, so fingers crossed.

Re: The new body editor

2014-09-08 Thread 'Terry Brown' via leo-editor
On Mon, 8 Sep 2014 13:00:06 -0700 (PDT) "Edward K. Ream" wrote: > On Monday, September 8, 2014 2:49:29 PM UTC-5, Terry wrote: > > > Basically we need the body editor to not be a singleton thing, and > > then > free_layout can do all kinds of things, including persistent multiple > editors. So

Re: Some smallish cleanups: one level of indirection is enough!

2014-09-08 Thread EmanueL Czirai
On Mon, Sep 8, 2014 at 9:49 PM, Edward K. Ream wrote: > I've just pushed a cleanup of Leo's qt tree code in qt_tree.py. The new > code eliminates the the BaseNativeTreeWidget class and moves all the > functional code from the BaseNativeTreeWidget class to the LeoQtTree class, > eliminating code

Re: Some smallish cleanups: one level of indirection is enough!

2014-09-08 Thread Edward K. Ream
On Mon, Sep 8, 2014 at 4:44 PM, EmanueL Czirai wrote: > if isinstance(widget,QtGui.QTextEdit): > AttributeError: 'module' object has no attribute 'QTextEdit' What platform are you on. Do you have Qt installed? Have you been able to run Leo before today? Edward -- You received this messa

Re: Some smallish cleanups: one level of indirection is enough!

2014-09-08 Thread EmanueL Czirai
I'm on linux manjaro(based on archlinux) Linux manji 3.17.0-rc4-gd030671 #83 SMP Mon Sep 8 15:35:58 CEST 2014 x86_64 GNU/Linux I've been able to run only Leo 4.11 final, but never the git version yet. I've qt5 installed extra/pyqt5-common 5.3.1-1 [installed] extra/python-pyqt5 5.3.1-1 [installed]

Re: Some smallish cleanups: one level of indirection is enough!

2014-09-08 Thread Edward K. Ream
On Mon, Sep 8, 2014 at 5:19 PM, EmanueL Czirai wrote: > I've been able to run only Leo 4.11 final, but never the git version yet. That makes sense ;-) > I've qt5 installed > extra/pyqt5-common 5.3.1-1 [installed] > extra/python-pyqt5 5.3.1-1 [installed] > extra/qt5-base 5.3.1-1 (qt qt5) [instal

Re: Some smallish cleanups: one level of indirection is enough!

2014-09-08 Thread Edward K. Ream
On Mon, Sep 8, 2014 at 5:58 PM, Edward K. Ream wrote: > Otoh, I'm not sure whether anyone is using Qt5 for Leo, despite the > support in leoQt.py. I'll see whether I can get Leo working with Qt5 > on ubuntu and report back. Happily, I got the same traceback you did. The problem is a Qt4/5 gotc

Re: Some smallish cleanups: one level of indirection is enough!

2014-09-08 Thread Edward K. Ream
On Mon, Sep 8, 2014 at 6:17 PM, Edward K. Ream wrote: >> Otoh, I'm not sure whether anyone is using Qt5 for Leo, despite the >> support in leoQt.py. I'll see whether I can get Leo working with Qt5 >> on ubuntu and report back. > > Happily, I got the same traceback you did. The problem is a Qt4/

Re: Some smallish cleanups: one level of indirection is enough!

2014-09-08 Thread EmanueL Czirai
Cool. Starts up. I see some Qt4 related errors which are maybe harmless? but mentioning them just in case you'll want to address -- $ ./launchLeo.py ** isPython3: True Leo 4.11 final, build 20140908184639, Mon Sep 8 18:46:39 CDT 2014 Git re

Re: Some smallish cleanups: one level of indirection is enough!

2014-09-08 Thread EmanueL Czirai
Figured out how to run tests. This is while python-pyqt4 is not installed: Ran 864 tests in 101.304s FAILED (failures=11) I know this isn't really useful but there's too much output to even know what to paste:) On Tue, Sep 9, 2014 at 2:11 AM, EmanueL Czirai wrote: > Cool. Starts up. > I see