[Qgis-developer] Adding python bindings for quickprint

Tim Sutton tim at linfiniti.com
Tue Jan 15 05:06:08 EST 2008

Hi Martin

I want to create python bindings for QuickPrint class. I copied work
you did for other classes (see attached patch) and it all compiles
fine. Bearing in mind that Im a complete python noob how do I:

 -  confirm my class is available in the pythond bindings? I tried in
the python console to do like  qp = QgsQuickPrint but it gave an error
 -  is there something like Doxygen API that I can read the api docs for python
 - I looked through all the examples I could find and none of the
python stuff I saw seemed to make use of qgis classes directly - they
all seem to pull objects out of the iface object. Where can I find
better examples?

the quick print class *should* work something like this:

qp = QgsQuickPrint
qp.setMapCanvas ( iface.getMapCanvas() )
qp.setOutputPdf ("/tmp/test;pdf")
qp.setTitle ("QGIS Rocks")



Tim Sutton
QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quickprint_py.diff
Type: text/x-diff
Size: 1238 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20080115/f4cbbbe0/quickprint_py.bin

More information about the Qgis-developer mailing list