Changed from wx.PySimpleApp() to wx.App() to avoid deprecation warning.