parameters: (self)
docstring: Create and layout the GUI elements.
docstring_summary: Create and layout the GUI elements.
docstring_tokens: Create and layout the GUI elements .
function: def init_ui(self):
          """
          Create and layout the GUI elements.
          """
          self.execute_button = self._make_execute_button()
          self.search_box = self._make_search_box()
          self.tree = self._make_tree_widget()
  
          top_layout = QHBoxLayout()
          top_layout.addWidget(self.execute_button)
          top_layout.addWidget(self.search_box)
          top_layout.setStretch(1, 1)
  
          layout = QVBoxLayout()
          layout.addLayout(top_layout)
          layout.addWidget(self.tree)
  
          self.algorithm_progress_widget = AlgorithmProgressWidget(self)
          self.algorithm_progress_widget.setAttribute(Qt.WA_DeleteOnClose)
  
          layout.addWidget(self.algorithm_progress_widget)
          # todo: Without the sizeHint() call the minimum size is not set correctly
          #       This needs some investigation as to why this is.
          layout.sizeHint()
          self.setLayout(layout)
function_tokens: def init_ui ( self ) : self . execute_button = self . _make_execute_button ( ) self . search_box = self . _make_search_box ( ) self . tree = self . _make_tree_widget ( ) top_layout = QHBoxLayout ( ) top_layout . addWidget ( self . execute_button ) top_layout . addWidget ( self . search_box ) top_layout . setStretch ( 1 , 1 ) layout = QVBoxLayout ( ) layout . addLayout ( top_layout ) layout . addWidget ( self . tree ) self . algorithm_progress_widget = AlgorithmProgressWidget ( self ) self . algorithm_progress_widget . setAttribute ( Qt . WA_DeleteOnClose ) layout . addWidget ( self . algorithm_progress_widget ) # todo: Without the sizeHint() call the minimum size is not set correctly #       This needs some investigation as to why this is. layout . sizeHint ( ) self . setLayout ( layout )