code: def get_widget(title):
      
      tform = idaapi.find_tform(title)
      if not tform:
          raise exceptions.FormNotFound("No form titled {!r} found.".format(title))
  
      return form_to_widget(tform)
docs: Get the Qt widget of the IDA window with the given title.