From 5ccddf723234cfc741f767c903f95615e8f41e45 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 4 Jan 2024 01:42:06 +0300 Subject: [PATCH] Feat(wx/search): Add substring search radio buttons [skip ci] --- m_librarian/wx/SearchPanel.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) -- 2.39.5