Check if the colour string is not empty before trying to pull something out of it.  Fixes #15210.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/trunk@74021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
fix docstring typo

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/trunk@74022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
reswigged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/trunk@74023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
reswigged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/trunk@74024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
reswigged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/trunk@74025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775