List Info

Thread: Srange intellisense behavior.




Srange intellisense behavior.
country flaguser name
United States
2008-03-25 15:34:40
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 ??


Anthony


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

Re: Srange intellisense behavior.
user name
2008-03-26 10:59:05
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.

Regards,
Detlev
-- 
Detlev Offenbach
detlevdie-offenbachs.de

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

Re: Srange intellisense behavior.
user name
2008-03-27 13:47:39
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

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

[1-3]

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