def displaySearchDialog(self): if self.first_start_search_dialog == True: self.first_start_search_dialog = False self.imgSearchDialog = ImgSearchDialog(self.iface, self.settings) # show the dialog self.imgSearchDialog.show() self.imgSearchDialog.activateWindow() self.imgSearchDialog.raise_() # Run the dialog event loop result = self.imgSearchDialog.exec_() print(result) # See if OK was pressed if result: # Do something useful here - delete the line containing pass and # substitute with your code. pass
def displaySearchTool(self): self.imgSearchDialog = ImgSearchDialog(self.iface, self.settings) self.imgSearchDialog.show()