title: Delete image in wxpython?
body: <p>I know this sounds easy but how can i delete a image with wxpython?</p>
  
  <p>I am using wx.StaticBitmap and wx.Image to create the image, but is there a way to delete an image?</p>
  
  <p>Maybe theres something like this:</p>
  
  <pre><code>bmp1 = wx.Image(filename, wx.BITMAP_TYPE_ANY).ConvertToBitmap()
  self.bitmap1 = wx.StaticBitmap(self.sizer, -1, bmp1, (0, 0))
  delete_image(self.bitmap1)
  delete_image(bmp1)
  </code></pre>
  
  <p>I have tried replacing the variable but the image still shows.</p>