]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/wx/SearchPanel.py
Refactor(wx): Do not store attributes we do not need later
[m_librarian.git] / m_librarian / wx / SearchPanel.py
index 11633b3b7a29662229cc6a57ba2f8ea1c4b77aa0..89b0698c5761377390ac405c0776aa657f0a51ef 100644 (file)
@@ -10,7 +10,7 @@ class SearchPanel(wx.Panel):
 
     def __init__(self, parent):
         wx.Panel.__init__(self, parent)
-        self.search_authors_vsizer = search_authors_vsizer = \
+        search_authors_vsizer = \
             wx.StaticBoxSizer(wx.VERTICAL, self, u'Поиск авторов')
         self.SetSizer(search_authors_vsizer)
 
@@ -34,8 +34,7 @@ class SearchPanel(wx.Panel):
             self, label=u'Различать прописные/строчные')
         search_authors_vsizer.Add(search_case)
 
-        self.search_authors_button = search_authors_button = wx.Button(
-            self, label=u'Искать авторов')
+        search_authors_button = wx.Button(self, label=u'Искать авторов')
         search_authors_vsizer.Add(search_authors_button, 0, wx.ALIGN_CENTER, 0)
         search_authors_button.Bind(wx.EVT_BUTTON, self.SearchAuthors)