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

m_librarian/wx/Application.py
m_librarian/wx/SearchPanel.py [new file with mode: 0644]

index 03821fc732f7154e40580bcfb7f91f8ae63eb9c6..489924ddcd360083f13b534ea355a2ffdab883f5 100644 (file)
@@ -2,6 +2,7 @@
 
 import wx, wx.adv  # noqa: E401 multiple imports on one line
 from ..__version__ import __version__
+from .SearchPanel import SearchPanel
 from .session_config import get_session_config
 
 
@@ -16,6 +17,7 @@ class MainWindow(wx.Frame):
             size=wx.Size(width=width, height=height),
         )
         self.InitMenu()
+        self.search_panel = search_panel = SearchPanel(self)
         self.Show(True)
         self.Bind(wx.EVT_SIZE, self.OnSize)
 
diff --git a/m_librarian/wx/SearchPanel.py b/m_librarian/wx/SearchPanel.py
new file mode 100644 (file)
index 0000000..fd21b56
--- /dev/null
@@ -0,0 +1,15 @@
+# coding: utf-8
+
+import wx
+
+
+class SearchPanel(wx.Panel):
+
+    def __init__(self, parent):
+        wx.Panel.__init__(self, parent)
+        self.search_authors_vsizer = search_authors_vsizer = \
+            wx.StaticBoxSizer(wx.VERTICAL, self, u'Поиск авторов')
+        self.SetSizer(search_authors_vsizer)
+
+        self.search_authors = search_authors = wx.TextCtrl(self)
+        search_authors_vsizer.Add(search_authors, 0, wx.EXPAND, 0)