86 self._init_coll_HeaderSizer_Items(self.HeaderSizer) |
86 self._init_coll_HeaderSizer_Items(self.HeaderSizer) |
87 |
87 |
88 self.SetSizer(self.MainSizer) |
88 self.SetSizer(self.MainSizer) |
89 |
89 |
90 def _init_ctrls(self, prnt): |
90 def _init_ctrls(self, prnt): |
91 wx.Panel.__init__(self, id=ID_SEARCHRESULTPANEL, |
|
92 name='SearchResultPanel', parent=prnt, pos=wx.Point(0, 0), |
|
93 size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL) |
|
94 |
|
95 self.HeaderLabel = wx.StaticText(id=ID_SEARCHRESULTPANELHEADERLABEL, |
91 self.HeaderLabel = wx.StaticText(id=ID_SEARCHRESULTPANELHEADERLABEL, |
96 name='HeaderLabel', parent=self, |
92 name='HeaderLabel', parent=self, |
97 pos=wx.Point(0, 0), size=wx.Size(0, 17), style=0) |
93 pos=wx.Point(0, 0), size=wx.Size(0, 17), style=0) |
98 |
94 |
99 search_results_tree_style = CT.TR_HAS_BUTTONS | CT.TR_NO_LINES | CT.TR_HAS_VARIABLE_ROW_HEIGHT |
95 search_results_tree_style = CT.TR_HAS_BUTTONS | CT.TR_NO_LINES | CT.TR_HAS_VARIABLE_ROW_HEIGHT |
112 self.Bind(wx.EVT_BUTTON, self.OnResetButton, self.ResetButton) |
108 self.Bind(wx.EVT_BUTTON, self.OnResetButton, self.ResetButton) |
113 |
109 |
114 self._init_sizers() |
110 self._init_sizers() |
115 |
111 |
116 def __init__(self, parent, window): |
112 def __init__(self, parent, window): |
|
113 wx.Panel.__init__(self, id=ID_SEARCHRESULTPANEL, |
|
114 name='SearchResultPanel', parent=parent, |
|
115 pos=wx.Point(0, 0), |
|
116 size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL) |
|
117 |
117 self.ParentWindow = window |
118 self.ParentWindow = window |
118 |
119 |
119 self._init_ctrls(parent) |
120 self._init_ctrls(parent) |
120 |
121 |
121 # Define Tree item icon list |
122 # Define Tree item icon list |