X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fwx%2FSearchPanel.py;h=8547c313152fc07f8253e7b0305464ab508db747;hb=80ba14a7bd17c4ddf1bd7c193e0bba6aa4d0c907;hp=11633b3b7a29662229cc6a57ba2f8ea1c4b77aa0;hpb=d64c85c78598c984e7e468903fde25fb55e23883;p=m_librarian.git diff --git a/m_librarian/wx/SearchPanel.py b/m_librarian/wx/SearchPanel.py index 11633b3..8547c31 100644 --- a/m_librarian/wx/SearchPanel.py +++ b/m_librarian/wx/SearchPanel.py @@ -2,6 +2,8 @@ import wx from ..search import search_authors_raw +from .ListAuthors import ListAuthorsWindow + _search_types = ['start', 'substring', 'full'] @@ -10,7 +12,7 @@ class SearchPanel(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self, parent) - self.search_authors_vsizer = search_authors_vsizer = \ + search_authors_vsizer = \ wx.StaticBoxSizer(wx.VERTICAL, self, u'Поиск авторов') self.SetSizer(search_authors_vsizer) @@ -34,8 +36,7 @@ class SearchPanel(wx.Panel): self, label=u'Различать прописные/строчные') search_authors_vsizer.Add(search_case) - self.search_authors_button = search_authors_button = wx.Button( - self, label=u'Искать авторов') + search_authors_button = wx.Button(self, label=u'Искать авторов') search_authors_vsizer.Add(search_authors_button, 0, wx.ALIGN_CENTER, 0) search_authors_button.Bind(wx.EVT_BUTTON, self.SearchAuthors) @@ -45,4 +46,6 @@ class SearchPanel(wx.Panel): search_case = self.search_case.GetValue() if search_case is False: search_case = None - search_authors_raw(search_authors, search_substr, search_case) + search_authors_results = \ + search_authors_raw(search_authors, search_substr, search_case) + ListAuthorsWindow(self.Parent, search_authors_results)