List Info

Thread: RE: Srange intellisense behavior.




RE: Srange intellisense behavior.
country flaguser name
United States
2008-03-27 15:38:01

-----Original Message-----
From: eric-bouncesriverbankcomputing.com
[mailto:eric-bouncesriverbankcomputing.com] On Behalf Of Phil
Thompson
Sent: Thursday, March 27, 2008 8:48 PM
To: ericriverbankcomputing.com
Subject: Re: [Eric] Srange intellisense behavior.

On Wednesday 26 March 2008, Detlev Offenbach wrote:
> On Dienstag, 25. März 2008, objectref wrote:
> > Hi to all,
> >
> > I created an empty project in Eic4 and add a new
form. The Qt Designer
> > opens and I construct the form with the widgets I
need. Form file is
> > saved as findandrelace.ui.
> > I close the designer, see this file in
project-Viewer, I do a "compile
> > form" and now I have a file
Ui_findandreplace.py in project-Viewer
> > Sources.
> >
> > I add a file to the project so I can
"use" the designer-generated class
> > and show the form, just the usual way. I do an
"import
Ui_findandreplace"
> > but I cannot see any properties/methods with the
intellisense.
> >
> > E.x. I press
Ui_findandreplace.Ui_FindAndReplaceDlg. and with Ctrl-Space
> > I suppose I would see the setupUi() method but I
do not.
> >
> > Am I doing something wrong ??
>
> No, you are doing fine. That feature is not present in
eric4. QScintilla2
> expects API files of a specific format which it
compiles into an internal
> format. Eric4 doesn't scan a file when it is saved in
order to generate an
> API file. And if it did, this API file would need to be
added to the list
> of API files for Python and would need to be compiled.
After that step,
the
> completions would be available for all Python scripts.
Dynamic
> autocompletion is not supported by QScintilla2.

>Dynamically adding API entries is supported, but parsing
Python code to 
>determines what those entries should be isn't the job of
an editor widget.

>It shouldn't be too difficult to compile the generated
Python code and
extract 
>the new classes, methods etc and dynamically add them as
API entries.

>Phil


I think this is the correct way for an intellisense system
to work. It feels
really strange to not display at all your own code that you
write in the
editor!!



_______________________________________________
Eric mailing list
Ericriverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )