PDA

View Full Version : Can't refresh wx.Panel



spinetingler
October 28th, 2007, 03:27 PM
I'm learning Python and using the wxPython GUI toolkit. I can display and initial image on a panel but when I try to display the next image the first image can still be seen in the background... as the second image is smaller that the first. How do I refresh the panel to remove the image? :popcorn:

archivator
October 28th, 2007, 07:00 PM
Do you mind giving us some code as your problem seems rather unusual?

Auria
October 28th, 2007, 07:11 PM
Perhaps try to Clear() before drawing?
http://www.wxwidgets.org/manuals/stable/wx_wxdc.html#wxdcclear