Updating single WX instance.

Updating deprecated WXpython function, with newest version.