On 31 déc, 13:05, Pierre Raybaut <[email protected]> wrote:
> Actually QScintilla was originally chosen for both widgets: Console
> and Editor. And then we found out that it has performance issues --
> only visible in console-like widgets which require to be fast at
> writing very long lines (>> 80 columns) -- see the associated bug
> report to PyQt's mailing list:
> http://www.mail-archive.com/[email protected]/msg18503.html
>
> This bug has not been solved as of today (I'm sending an e-mail again
> to PyQt's maintainer but I doubt that this issue would become a top
> priority...).

Actually I was being pessimistic: bug has been fixed in current
development version.
When it's time (i.e. when the next stable release has spread on all
platforms, so probably not until a year I guess), I'll probably switch
back to QScintilla for both interactive and external consoles.

Pierre

>
> So, in order to provide a fast console widget, the workaround was to
> switch to PyQt's QTextEdit with some QScintilla's features which were
> implemented (written from scratch) like brace matching or code
> completion.
>
> BTW, I think that context-based code completion is far more powerful
> than QScintilla's in terms of introspection. QScintilla's code
> completion is based on a simple code analysis of the current script
> and on a very rough API structure ('python.api') which is static. So,
> compared to these two methods, the context-based code completion will
> suggest at least the same completions, and in most of the cases a lot
> more.
>
> Cheers,
> Pierre
>
> On Dec 24, 8:51 pm, Jeremy <[email protected]> wrote:
>
>
>
> > I'm a little confused about code completion in the console widgets.
>
> > After looking at the code, it looks like code completion in the
> > widgets is based on QTextEdit and not the QScintilla Text editor. As a
> > result, code completion in the console is limited to context based on
> > completion. Is this correct?
>
> > Are there any plans to integrate QScintilla into the console widget
> > for more powerful introspection?

--

You received this message because you are subscribed to the Google Groups 
"spyder" 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/spyderlib?hl=en.


Reply via email to