dicogis.ui.wdg_pg_services module

Name: PgServicesWidget Purpose: Editor of the PostgreSQL services (pg_service.conf), from pgserviceparser.

Imported by uic when loading dlg_pg_services.ui only: importing pgserviceparser.gui imports qgis.PyQt as soon as the QGIS bindings are importable, which dlg_pg_services.pg_service_editor_available() checks first.

Author: Julien Moura (@geojulien)

class dicogis.ui.wdg_pg_services.PgServicesWidget(parent=None)

Bases: PGServiceParserWidget

Editor of pgserviceparser, built like the widgets promoted in .ui files: uic passes the parent as first argument, which pgserviceparser takes for the path of pg_service.conf.

__init__(parent=None)

Edit the pg_service.conf file libpq uses (PGSERVICEFILE…).

Parameters:

parent (QWidget | None) – Qt parent widget