Callback to main thread with wxCommandEvent