[gcompris-devel] Eclipse (PyDev) autocompletion?
Olivier Samyn
olivier-ml1 at oleastre.be
Sun Aug 12 00:16:21 UTC 2012
Hello,
Even if you find the gcompris python files (located on my fedora
distribution in /usr/share/gcompris/python/gcompris/), you will only
find some lines like: from _gcompris_skin import *
All gcompris python methods are contained in C python modules.
And, unfortunately, the eclipse pydev parser can not find such modules
internals.
I think the best way to learn how to program gcompris in python, is to
have a look at existing activities, and if you find something
interesting, just copy it :)
Olivier Samyn.
Le mardi 07 août 2012 à 22:12 +0200, Peter Albrecht a écrit :
> Hello list,
>
> next question(s):
> I want to write a new activity in python. So I took my
> Eclipse installation and installed PyDev.
>
> This (e.g. syntax highlightning) works quite well and I can
> see first results with "/runit.sh my-activity". So my
> questions is more of "nice to have":
>
> Eclipse provides autocompletion for classes I programmed,
> but fails, if I type e.g. "gcompris.".
>
> I would guess, I have to add the appropriate source-dirs to
> PYTHONPATH. But I can't find them. Since I am new to pyhton,
> changes are high, that I miss something.
> Is there anyone out there, who managed to set this up properly?
>
> Or would you recommend another IDE/Editor?
>
> Regards,
> Peter Albrecht
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> gcompris-devel mailing list
> gcompris-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gcompris-devel
More information about the Gcompris-devel
mailing list