title: changing data in list on button press
body: <p>in wxpython how do you update the information in the list when the user presses the button... the code i have is this :</p>
  
  <pre><code>ButtonImage8 = "Images/GUI/MP3Player/button_reload.bmp"
  ButtonImageBMP8 = wx.Image(ButtonImage8, wx.BITMAP_TYPE_ANY).ConvertToBitmap()
  
  button8 = wx.BitmapButton(BUTTONpanel8, id=wx.ID_ANY,bitmap=ButtonImageBMP8, size=(40, 40), pos=(0, 0),style=wx.NO_BORDER)
  button8.Bind(wx.EVT_BUTTON, self.Music_Reload)
  
  
  BUTTONpanel8 = wx.Panel(self, -1, pos=(280, 160), size=(40, 40), style=wx.NO_BORDER)
  
  MP3FileListPanel = wx.Panel(self, -1,style=wx.NO_BORDER, pos=(0, 0), size=(320, 160))
  
  MP3FileList = wx.ListBox(choices=[], parent=MP3FileListPanel, pos=wx.Point(0, 0),size=(320, 160))
  </code></pre>
  
  <p>def Music_Reload(self, event):
    for root, dirs, files in os.walk("/home/tjohnson/python"):
     for file in files:
      if file.endswith(".py"):
       self.MP3FileList.Append(file)
       print(os.path.join(root, file))</p>
  
  <p>when i press the button the code says "Attribute not found" referring to the list box keep in mind i have extracted this code from the full script. when it tries to self.list.append() it throws an error</p>