On Tue, Feb 17, 2009 at 10:43 AM, Edward K. Ream <[email protected]>wrote:
> > > On Tue, Feb 17, 2009 at 10:40 AM, Edward K. Ream <[email protected]>wrote: > >> >> I see no QTextEdit.textBlock method. How do we get the QTextBlock? >> > > To answer my own question:: > > s = w.textCursor().block().text() > > I'll try this immediately. > block() is only the line containing the cursor, so it doesn't work. I fail to understand why s = w.toPlainText() can be slower than our python-level code. After all, toPlainText has higher granularity! 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 -~----------~----~----~----~------~----~------~--~---
