On Wed, Jan 27, 2010 at 11:32 AM, Edward K. Ream <[email protected]> wrote:
> On Wed, Jan 27, 2010 at 10:27 AM, Terry Brown <[email protected]> wrote:
>
>> Heh, I had the same idea, indeed the second version of my test code 
>> (attached again to this email for convenience) does that. But, I found that 
>> this code, which I think is a distillation of what leo *intends* to do, does 
>> in fact work:
>
> Thanks for the demo.  I'm looking at it now...

Leo's core calls, for example, insertNewlineHelper in leoEditCommands.
 Continuing the example, this may call:

     w.delete(i,j)
     w.insert(i,ch)
     w.setInsertPoint(i+1)

I had forgotten that w is *not* a QTextEdit, but rather
leoQTextEditWidget.    Thus, the code that isn't working is in
qtGui.py, the node Widget-specific overrides (QTextEdit). This code is
a bit complex, and it's possible that it doesn't work properly.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to