Some wxPython codes