def on_downloadBtn_clicked(self): qs = QtCore.QSettings() hostname = qs.value('gemcatalogue/hostname', '') username = qs.value('gemcatalogue/username', '') password = qs.value('gemcatalogue/password', '') if not (hostname and username and password): dialog = PlatformSettingsDialog(self.iface) if dialog.exec_(): self.gemcatalogue.show_exposure(hostname, username, password) else: self.gemcatalogue.show_exposure(hostname, username, password)
def platform_settings(self): dialog = PlatformSettingsDialog(self.iface) dialog.exec_()