def onSearchBtn(self, event): try: caseDetails except: print("Case not open") else: dlg = search.searchDialog(None) #calls searchDialog() from search.py dlg.Center() dlg.ShowModal() searchItem = dlg.searchItems() #calls searchItem() to get search and search option searchReturn = [] if searchItem[1] == "Normal Search": for x in evidenceDetails: conn = connectdb.create_connection(x[2]) #connect to tsk database searchResults = connectdb.search_file_name(conn, searchItem[0]) #search in tsk database if searchResults != []: for i in searchResults: i = i + (x[1],) #adds image location to end of result searchReturn.append(i) #append each result self._dialog = wx.ProgressDialog("Search", "Searching for {val}".format(val=searchItem[0]), 100) LoadingDialog(self._dialog) self.auiNotebook.AddPage(searchTab.searchTabPanel(self.auiNotebook, searchReturn, caseDir), "Search ("+searchItem[0]+")", False, wx.NullBitmap) #call and add searchTab aui page LoadingDialog.endLoadingDialog(self) else: print("Regular Expression") dlg.Destroy()
def openSearchDialog(self): self.sD = search.searchDialog(self) self.sD.show()
def openSearchDialog(self): self.sD = search.searchDialog(self) self.sD.show()