controls/SearchResultPanel.py
changeset 1836 d42b6cf00fa6
parent 1782 5b6ad7a7fd9d
child 1846 14b40afccd69
--- a/controls/SearchResultPanel.py	Thu Sep 28 17:24:33 2017 +0300
+++ b/controls/SearchResultPanel.py	Fri Sep 29 15:36:33 2017 +0300
@@ -88,10 +88,6 @@
         self.SetSizer(self.MainSizer)
 
     def _init_ctrls(self, prnt):
-        wx.Panel.__init__(self, id=ID_SEARCHRESULTPANEL,
-                          name='SearchResultPanel', parent=prnt, pos=wx.Point(0, 0),
-                          size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL)
-
         self.HeaderLabel = wx.StaticText(id=ID_SEARCHRESULTPANELHEADERLABEL,
                                          name='HeaderLabel', parent=self,
                                          pos=wx.Point(0, 0), size=wx.Size(0, 17), style=0)
@@ -114,6 +110,11 @@
         self._init_sizers()
 
     def __init__(self, parent, window):
+        wx.Panel.__init__(self, id=ID_SEARCHRESULTPANEL,
+                          name='SearchResultPanel', parent=parent,
+                          pos=wx.Point(0, 0),
+                          size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL)
+
         self.ParentWindow = window
 
         self._init_ctrls(parent)