Reply
Thread Tools
Posts: 162 | Thanked: 79 times | Joined on Jan 2010 @ Finland
#1
I've started my path as fresh newbie to try and do some python development using Pluthon. Everything seems fine and dandy, but one key thing seems to be missing. Code completion that is. It seems that core python code supports code completion but with gtk and hildon modules none exists. I've done my part of notepad developing with Java so I know how much a code helper/completer helps. Is this a feature that is not implemented yet or is my installation not working correctly? Is the only way to go and google myself a proper GTK/Hildon API webpage to find the fine details of the API's?

I tried my fair share of checking the documentation that had some info about a hover help, but it seems to me that that is only supported for C and C++? Any help would be appreciated.
 
Posts: 60 | Thanked: 23 times | Joined on Jan 2010
#2
I want to know this too.
 
Posts: 162 | Thanked: 79 times | Joined on Jan 2010 @ Finland
#3
No information available? What about the PyQt libraries?
 
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
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:12.