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
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)
--- /dev/null
+# 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)