Thanks for your reply!

I'm using PyScripter and I have code completion with this module (qgis). I
think PyScripter also uses rope but I may be wrong.

This module is like PyQt, it's the python bindings for QGIS (written in C):

http://www.qgis.org
http://www.qgis.org/wiki/Python_Bindings
http://mapserver.sk/~wonder/qgis/html/intro.html

The bindings are made with SIP. Do see any reason why it should not work
with Spyder?

Thanks
Duarte
<http://www.qgis.org/wiki/Python_Bindings>

On Thu, Aug 5, 2010 at 2:21 PM, Pierre Raybaut <[email protected]>wrote:

> The console code completion is simply based on dynamic object
> introspection: to show code completion on object 'obj', it basically
> does a 'dir(obj)' and show the returned list in a combo box...
>
> In the editor however, one cannot import all modules (otherwise it
> would sometimes be very long to process a file) so the code completion
> is based on the 'rope' Python module. In Spyder, rope uses 'Static
> Object Analysis' to provide code completion, calltips and go-to-
> definition features.
>
> Maybe in your case, the 'qgis' module (which I'm not familiar with) is
> impossible for rope to analyze for a reason that I do not know.
>
> Pierre
>
> On 3 août, 13:09, Duarte Carreira <[email protected]> wrote:
> > More on this...
> >
> > This works in the editor and internal console:
> >
> > import qgis.utils
> > test=qgis.utils.os.getcwd()
> >
> > This only works in the internal console:
> >
> > import qgis.core
> > test=qgis.core.QGis.QGIS_VERSION
> >
> > Now both modules are in the same folder. qgis.core is qgis\core.pyd,
> > and qgis.utils is qgis\utils.py.
> >
> > Duarte
> >
> > On Aug 3, 11:46 am, Duarte Carreira <[email protected]> wrote:
> >
> >
> >
> > > Answering myself...
> >
> > > Yes it works fine.
> >
> > > The only problem I have is with pyd modules. I can't make it work in
> > > the editor. But it works in the Internal console.
> > > For instance, this works in the Internal console:
> >
> > > from qgis.core import *
> > > test=QGis.    #at this point pressing tab gives me all the members in
> > > QGis.
> >
> > > But the same code does not work in the editor window/pane.
> >
> > > Other py modules are recognized. Just pyd modules don't work.
> >
> > > Duarte
> >
> > > On Jul 30, 3:33 pm, Duarte Carreira <[email protected]> wrote:
> >
> > > > Hi all.
> >
> > > > Does code completion work in this version with external modules? I
> can
> > > > see PyQt4 modules but other modules I'm using do not show up when I
> > > > press TAB.
> >
> > > > I have rope installed, and do NOT have QScintilla.
> >
> > > > Thanks,
> > > > Duarte
>
> --
> 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]<spyderlib%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/spyderlib?hl=en.
>
>

-- 
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