I added a label, a combo box, and a text search to a panel object using wxphyton (following a book example). The three objects show piled up on the upper left, the combo box is populated and clickable, the text search can be accessed, but I cannot use them like that. Here is an example of the code:
search_sizer = wx.BoxSizer(wx.HORIZONTAL) self.search_ctrl = wx.SearchCtrl(self, style=wx.TE_PROCESS_ENTER) self.search_ctrl.Bind(wx.EVT_TEXT_ENTER, self.search) search_sizer.Add(self.search_ctrl, 0, wx.ALL, 5)
I assume the different objects would be added horizontally as added, but no, they are all located at 0,0
How do I fix that?