​​
On Fri, Apr 3, 2015 at 8:18 AM, Edward K. Ream <[email protected]> wrote:

​> On Fri, Apr 3, 2015 at 7:36 AM, john lunzer <[email protected]> wrote:​

​>> ​
That said, the subclassed QFrame class in the link
<https://john.nachtimwald.com/2009/08/15/qtextedit-with-line-numbers/> from
my previous post works with both QTextEdit and QTextBrowser

​> ​
​Cool!  I missed that link earlier..
​.​
​I'll play around with it asap.

​Rev ​72d7740 contains my rewriting of the code. It's LineTextWidget class
in plugins/qt_text.py. This file is essentially part of Leo's core.

The LineTextWidget class is *experimental*.  It is used nowhere in Leo.
Otoh, it is "Leo ready". It passes pylint and imports Qt symbols from
leo.core.leoQt. I understand every line of the code, having simplified it
:-)

The goal will be to fold the code into the LeoQTextBrowser class, defined
in the same file.  This will not be trivial, but it should be possible.

I won't do anything more until @nosent works as it used to do ;-)

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to