コード例 #1
0
ファイル: sos_client_dialog.py プロジェクト: jcnaud/SOSClient
 def populateConnectionList(self):
     self.cmbConnections.blockSignals(True)
     self.cmbConnections.clear()
     keys = QgsOWSConnection.connectionList("SOS")
     self.cmbConnections.addItems (keys)
     self.cmbConnections.blockSignals(False)
     index = self.cmbConnections.findText(QgsOWSConnection.selectedConnection("SOS"))
     self.cmbConnections.setCurrentIndex(index)
     self.on_cmbConnections_currentIndexChanged (QgsOWSConnection.selectedConnection("SOS"))
     QgsDebug ("populateConnectionList: selectedConnection = {}".format(QgsOWSConnection.selectedConnection("SOS")))
コード例 #2
0
ファイル: sos_client_dialog.py プロジェクト: kinow/SOSClient
 def populateConnectionList(self):
     self.cmbConnections.blockSignals(True)
     self.cmbConnections.clear()
     keys = QgsOWSConnection.connectionList("SOS")
     self.cmbConnections.addItems(keys)
     self.cmbConnections.blockSignals(False)
     index = self.cmbConnections.findText(
         QgsOWSConnection.selectedConnection("SOS"))
     self.cmbConnections.setCurrentIndex(index)
     self.on_cmbConnections_currentIndexChanged(
         QgsOWSConnection.selectedConnection("SOS"))
     QgsDebug("populateConnectionList: selectedConnection = {}".format(
         QgsOWSConnection.selectedConnection("SOS")))