Problem
A few years ago I saw a question on the popular StackOverflow web site asking how to dynamically destroy and create panels
after a certain amount of time has passed. It was such an interesting idea that I decided to go ahead and write about how to do it. All you really need is a wx.Timer and the panel object. For this piece of code, I used a panel that displays a countdown with a
wx.StaticText widget
, destroys itself, and is promptly replaced with another panel.