def METHOD_NAME(self, event=None):
    text = get_active_text_widget()
    if not text:
        return
    if (
        self._box_is_visible()
        or self._should_show_automatically()
        and text.get("insert -1 chars") == "("
    ):
        self.request_calltip_for_text(text)