def on_download(self, event): selection = self.search_results_olv.GetSelectedObject() if selection: with DownloadDialog(selection) as dlg: dlg.ShowModal()
def showDownloadDialog(self): self.download_dialog = DownloadDialog(self.iface) # show the dialog self.download_dialog.show()