code: def get_extra_keywords(self):
          
          extra_keywords = {}
          for key, widgets in list(self.widgets_dict.items()):
              if widgets[0].isChecked():
                  if isinstance(widgets[1], QLineEdit):
                      extra_keywords[key] = widgets[1].text()
                  elif isinstance(widgets[1], QComboBox):
                      current_index = widgets[1].currentIndex()
                      extra_keywords[key] = widgets[1].itemData(current_index)
                  elif isinstance(widgets[1], (QDoubleSpinBox, QSpinBox)):
                      extra_keywords[key] = widgets[1].value()
                  elif isinstance(widgets[1], QDateTimeEdit):
                      extra_keywords[key] = widgets[1].dateTime().toString(
                          Qt.ISODate)
  
          return extra_keywords
docs: Obtain extra keywords from the current state.