code: def show(self):
          
  
          selected_text = self.__container.get_current_editor().get_selected_text()
          selected_text and SearchAndReplace.insert_pattern(selected_text, self.__search_patterns_model)
          self.Search_comboBox.line_edit().selectAll()
          self.Search_comboBox.setFocus()
  
          super(SearchInFiles, self).show()
          self.raise_()
docs: Reimplements the :meth:`QWidget.show` method.