code: def set_widgets(self):
          
          # First, list available layers in order to check if there are
          # any available layers. Note This will be repeated in
          # set_widgets_step_fc_agglayer_from_canvas because we need
          # to list them again after coming back from the Keyword Wizard.
          self.parent.step_fc_agglayer_from_canvas.\
              list_compatible_canvas_layers()
          lst_wdg = self.parent.step_fc_agglayer_from_canvas.lstCanvasAggLayers
          if lst_wdg.count():
              self.rbAggLayerFromCanvas.setText(tr(
                  'I would like to use an aggregation layer already loaded in '
                  'QGIS\n'
                  '(launches the %s for aggregation if needed)'
              ) % self.parent.keyword_creation_wizard_name)
              self.rbAggLayerFromCanvas.setEnabled(True)
              self.rbAggLayerFromCanvas.click()
          else:
              self.rbAggLayerFromCanvas.setText(tr(
                  'I would like to use an aggregation layer already loaded in '
                  'QGIS\n'
                  '(no suitable layers found)'))
              self.rbAggLayerFromCanvas.setEnabled(False)
              self.rbAggLayerFromBrowser.click()
  
          # Set icon
          self.lblIconIFCWAggregationOrigin.setPixmap(QPixmap(None))
docs: Set widgets on the Aggregation Layer Origin Type tab.