[Qgis-developer] please help me write a QGIS-PostGIS GUI in
Python
Barry Rowlingson
b.rowlingson at lancaster.ac.uk
Fri Feb 1 16:02:25 EST 2008
Maciej Sieczka wrote:
> I can't make the "Connect" button call the addNewConnection from Python.
That's because you haven't written the addNewConnection method!
When the button is clicked, the on_btnNew_clicked method is called -
you then have to write the code you want it to do when you click it. So
inside the class QgsDbSourceSelectBase you need to do:
def addNewConnection(self):
# create a new connection...
# insert your code here..
typically your code will read the state of various widgets in the UI and
then add a new connection...
get writing!
Barry
More information about the Qgis-developer
mailing list