Created decorator which makes functions/methods threadsafe by 
wrapping them in wx.CallAfter if they are not being called from the main 
GUI thread.