View Single Post
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#4
Originally Posted by chainreaction View Post
No information available? What about the PyQt libraries?
Hi,

sorry for the late reply, but here is some information forwarded I could get. There are some problems with code completion in Pydev, so here are just some ideas how it might work:

The main configuration you find in:
Window > Preferences > Pydev > Interpreter - Python entry that corresponds to the PyDev - Interpreter/Grammar setting for your project, or, the project-specific PyDev - PYTHONPATH settings for your project. This is where Pydev looks for the modules for code completion.
But a problem with the code-completion and python is that the Python wrappers are sometimes implemented in shared libraries. So, for the best results, Pydev and the host Python interpreter need to be able to load such libraries -- meaning you'll probably need to run on a Linux/x86 host and target x86 builds of the Maemo Python libraries while developing, so Pydev has a hope of loading them. But Pydev is still limited to searching and indexing files visible on the host filesystem.

In PluThon, you can copy the various Maemo Python libraries from your device to your host and add entries to the System PYTHONPATH under the interpreter settings. Again, though, this is unlikely to be very helpful, since those would be ARMEL libraries. It's worth a shot though.

On ESbox, this may all be easier. When running on a Linux host, we have support for configuring Pydev to use the Python installation from the active Scratchbox target (project > Properties > Maemo Build Configurations). For other hosts, you can configure the recommended ESbox > Build Machines > Shared Folder that points to Scratchbox, thus making Scratchbox visible to the host filesystem, and then add entries to the PYTHONPATH pointing to the rootstrap's Python installation that way. Again, though, you'd need to develop for an Linux/X86 target to get the best results.

Daniel