- self.txt = wxStaticText(self, -1, "Sample text...", (285, 50))
+ self.Bind(wx.EVT_LISTBOX, self.OnSelect, id=self.lb1.GetId())
+
+ self.txt = wx.StaticText(self, -1, "Sample text...", (285, 50))
+
+ row = wx.BoxSizer(wx.HORIZONTAL)
+ row.Add(s1, 0, wx.ALL, 5)
+ row.Add(self.lb1, 0, wx.ALL, 5)
+ row.Add(self.txt, 0, wx.ALL|wx.ADJUST_MINSIZE, 5)
+
+ sizer = wx.BoxSizer(wx.VERTICAL)
+ sizer.Add(row, 0, wx.ALL, 30)
+ self.SetSizer(sizer)
+ self.Layout()