dicogis.ui.dialogs.dlg_pg_services module¶
Name: PgServicesDialog Purpose: Dialog editing pg_service.conf with the editor of pgserviceparser.
Author: Julien Moura (@geojulien)
- class dicogis.ui.dialogs.dlg_pg_services.PgServicesDialog(parent=None)¶
Bases:
QDialogDialog editing the PostgreSQL connection services: create, rename, copy, remove, change their settings. The editor writes to pg_service.conf, the file libpq, QGIS and DicoGIS read, as it goes: no Cancel to offer.
Only to open once pg_service_editor_available() said so.
- dicogis.ui.dialogs.dlg_pg_services.pg_service_editor_available()¶
Tell whether the editor of pgserviceparser can run next to the GUI.
pgserviceparser.gui takes its widgets from qgis.PyQt as soon as the QGIS bindings are importable, even outside QGIS, where DicoGIS runs on PyQt6: on such a machine (system Python with the QGIS bindings, OSGeo4W shell…) the editor would mix two Qt bindings. Checked without importing anything.
- Return type:
- Returns:
True inside QGIS, or when the QGIS bindings aren’t importable