On Mon, Jun 11, 2012 at 12:55 PM, John L. Poole <jlpool...@gmail.com> wrote: > Scribus is an open source digital publishing project that offers Python > scripting much like VBA is to Microsoft Excel and Word. I'd like to be able > to use the objects exposed to Python in Scribus and do not know how to > modify PyDev to accomplish this. > > Here's what is available: > > 1) *.h and *.cpp files that wrap the desired objects, e.g. page, items, > layers &etc. > 2) files (generated from a Python script) containing the API points, i.e. > api_Scripter.activeDocument.activePage.items.api, in the format of: > > /** > * Scripter.activeDocument.activePage.items[i].objectName > * Property > * type is QString > */ > > /** > * Scripter.activeDocument.activePage.items[i].itemName > * Property > * type is QString > */ > > The above files are from the Subversion repository, see > > http://scribus.net/websvn/listing.php?repname=Scribus&path=%2Ftrunk%2FScribus%2Fscribus%2Fplugins%2Fscripter%2F&#aca5e4fd7ca7007cd8c97fe2e13849862 > > I tried to add as a source folder the directory, > D:\work\Scribus\src\scribus\plugins\scripter, containing these files in the > PyDEV PYTHONPATH menu. It looks like pointing to that directory did no good > as code that has reference to an object does not auto complete. > > What may I do to have the objects exposed for the Scribus python interpreter > available in PyDev? > > Thank you, > > John >
Hi John, Just as a reminder, this is a developers forum. Questions related to general configuration questions should be asked in stackoverflow with a 'pydev' tag. Regarding your issue, I think that the 'predefined completions' can solve it. See: http://www.pydev.org/manual_101_interpreter.html Cheers, Fabio p.s.: if you have further doubts regarding this, please ask at stack overflow. ------------------------------------------------------------------------------ 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/ _______________________________________________ pydev-code mailing list pydev-code@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-code