code: def stop_capture_coordinates(self):
          
          self.extent_dialog._populate_coordinates()
          self.extent_dialog.canvas.setMapTool(
              self.extent_dialog.previous_map_tool)
          self.parent.show()
docs: Exit the coordinate capture mode.