PyQt + PygreSQL

Neil Zanella nzanella at cs.mun.ca
Tue Aug 10 16:43:05 EDT 2004


Hello,

I am using the following with python:

The PyQt python bindings:

http://www.riverbankcomputing.co.uk/pyqt/

based on the Qt GUI Application Framework:

http://www.trolletch.com/

as well as the PyGreSQL python bindings:

http://www.pygresql.org/

based on the PostgreSQL database server:

http://www.postgresql.org/

I have the following question. When I instantiate QDataTable with C++
I must ensure that a database connection is open, and then have no
problems, otherwise I will get popup widgets with errors.

How can I properly set the default database connection and have
QDataTable find it using the combination of Python + PyQt + PyGreSQL?

Thanks,

Neil



More information about the Python-list mailing list