CallPythonScript not getting triggered when Clicked_Button is being handled

  1. we have a new Insert_Button added
  2. When Clicked_Button is called on the receiveMessage(), we wanted to call CallPythonScript and get the results of the selectedText.
  3. Then we wanted to call a modal window with the selected text. Currently, when we do that, the event window is not allowing the CallPythonScript to be invoked.