[Qgis-developer] please help me write a QGIS-PostGIS GUI in Python

Martin Dobias wonder.sk at gmail.com
Fri Feb 1 19:26:24 EST 2008


On Feb 2, 2008 12:34 AM, Maciej Sieczka <tutey at o2.pl> wrote:
> > By now you've realized you have to write your own code to manipulate
> >  dialogs and fetch/process user input. I'm working on a tutorial for
> > writing a plugin but don't expect it to be done for a while.
>
> Are SIP wrappers for QGIS C++ PostGIS functionality not present for a
> reason? If they were there, could I call PostGIS-related methods easily
> like this:
>
>
> from qgis.core import QgsContextHelp
>
>    def on_pbnHelp_clicked(self):
>      QgsContextHelp.run(32338213)
>

One reason is that PostGIS support is just optional part of QGIS.
Other reason is that QGIS libraries (core and gui) are meant to be a
collection of reusable classes - for example QgsDbSourceSelect class
definitely is not a reusable class, that's why it's also not included
in the libraries.

Martin



More information about the Qgis-developer mailing list