예제 #1
0
    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
예제 #2
0
    def displaySearchTool(self):

        self.imgSearchDialog = ImgSearchDialog(self.iface, self.settings)
        self.imgSearchDialog.show()