From 35591dca387bdab049f71d2b5634860fa89daa04 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 4 Jan 2024 01:04:22 +0300 Subject: [PATCH] Feat(wx/search): Add search panel [skip ci] --- m_librarian/wx/Application.py | 2 ++ m_librarian/wx/SearchPanel.py | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 m_librarian/wx/SearchPanel.py diff --git a/m_librarian/wx/Application.py b/m_librarian/wx/Application.py index 03821fc..489924d 100644 --- a/m_librarian/wx/Application.py +++ b/m_librarian/wx/Application.py @@ -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 index 0000000..fd21b56 --- /dev/null +++ b/m_librarian/wx/SearchPanel.py @@ -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) -- 2.39.5