I would recommend having a look at the pyqgis cookbook [1] there are some nice hands-on examples that should get you started. -- Matthias [1] http://www.qgis.org/en/docs/pyqgis_developer_cookbook/