Remove depreciated calls to wx.