From: Oleg Broytman Date: Wed, 3 Jan 2024 22:42:06 +0000 (+0300) Subject: Feat(wx/search): Add substring search radio buttons X-Git-Tag: 0.3.0~9^2~25 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=5ccddf723234cfc741f767c903f95615e8f41e45;p=m_librarian.git Feat(wx/search): Add substring search radio buttons [skip ci] --- diff --git a/m_librarian/wx/SearchPanel.py b/m_librarian/wx/SearchPanel.py index fd21b56..cde0fab 100644 --- a/m_librarian/wx/SearchPanel.py +++ b/m_librarian/wx/SearchPanel.py @@ -13,3 +13,14 @@ class SearchPanel(wx.Panel): self.search_authors = search_authors = wx.TextCtrl(self) search_authors_vsizer.Add(search_authors, 0, wx.EXPAND, 0) + + self.search_substr = search_substr = wx.RadioBox( + self, + choices=[ + u'Подстрока в начале', + u'Подстрока', + u'Точное совпадение', + ], + majorDimension=1, style=wx.RA_SPECIFY_ROWS + ) + search_authors_vsizer.Add(search_substr)