Core Windows/Controls → ListBox

import wx
class Frame(wx.Frame):
def __init__(
  self, parent=None, id=wx.ID_ANY, title='ListBox', pos=wx.DefaultPosition,
  size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE
  ):
  
  wx.Frame.__init__(self, parent, id, title, pos, size, style)
  self.SetIcon(wx.Icon('wxWidgets.ico', wx.BITMAP_TYPE_ICO))
  
  Panel = wx.Panel(self, wx.ID_ANY)
  
  wx.StaticText(Panel, wx.ID_ANY, 'Select One:', (15, 50))
  Languages = ['C', 'C++', 'Python', 'Java', 'C#', 'Perl']
  ListBox = wx.ListBox(Panel, wx.ID_ANY, pos=(100, 50), size=(90, 120),
        choices=Languages, style=wx.LB_SINGLE)
  
  
  wx.StaticText(Panel, wx.ID_ANY, 'Select Many', (220, 50))
  ListBox = wx.ListBox(Panel, wx.ID_ANY, pos=(320, 50), size=(90, 120),
        choices=Languages, style=wx.LB_EXTENDED)
        
  
  
def TestFrame():
app = wx.PySimpleApp()
frame = Frame()
frame.Centre()
frame.Show()
app.MainLoop()


if __name__ == '__main__':
TestFrame()