]> git.phdru.name Git - m_librarian.git/commitdiff
Feat(wx/search): Add substring search radio buttons
authorOleg Broytman <phd@phdru.name>
Wed, 3 Jan 2024 22:42:06 +0000 (01:42 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 3 Jan 2024 22:58:25 +0000 (01:58 +0300)
[skip ci]

m_librarian/wx/SearchPanel.py

index fd21b567b18ee8c2bb00ea7b604f804554b007bb..cde0fabf738dfcc36ea5ec10226f44b939f81c73 100644 (file)
@@ -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)