X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fwx%2FSearchPanel.py;h=11633b3b7a29662229cc6a57ba2f8ea1c4b77aa0;hb=d64c85c78598c984e7e468903fde25fb55e23883;hp=26fb666443812d0f7802724b51518486ac67a8f0;hpb=458991dd4c4428336a8f9abd5c4392d483e61a2f;p=m_librarian.git diff --git a/m_librarian/wx/SearchPanel.py b/m_librarian/wx/SearchPanel.py index 26fb666..11633b3 100644 --- a/m_librarian/wx/SearchPanel.py +++ b/m_librarian/wx/SearchPanel.py @@ -1,6 +1,9 @@ # coding: utf-8 import wx +from ..search import search_authors_raw + +_search_types = ['start', 'substring', 'full'] class SearchPanel(wx.Panel): @@ -38,5 +41,8 @@ class SearchPanel(wx.Panel): def SearchAuthors(self, event): search_authors = self.search_authors.GetValue() - search_substr = self.search_substr.GetSelection() + search_substr = _search_types[self.search_substr.GetSelection()] search_case = self.search_case.GetValue() + if search_case is False: + search_case = None + search_authors_raw(search_authors, search_substr, search_case)