Fixed working on older versions of wxPython