code: def update_extent(self, extent):
          
          self.x_minimum.setValue(extent[0])
          self.y_minimum.setValue(extent[1])
          self.x_maximum.setValue(extent[2])
          self.y_maximum.setValue(extent[3])
  
          # Updating the country if possible.
          rectangle = QgsRectangle(extent[0], extent[1], extent[2], extent[3])
          center = rectangle.center()
  
          for country in self.bbox_countries:
              for polygon in self.bbox_countries[country]:
                  if polygon.contains(center):
                      index = self.country_comboBox.findText(country)
                      self.country_comboBox.setCurrentIndex(index)
                      break
              else:
                  # Continue if the inner loop wasn't broken.
                  continue
              # Inner loop was broken, break the outer.
              break
          else:
              self.country_comboBox.setCurrentIndex(0)
docs: Update extent value in GUI based from an extent.
  
          :param extent: A list in the form [xmin, ymin, xmax, ymax] where all
              coordinates provided are in Geographic / EPSG:4326.
          :type extent: list