code: def set_north_arrow(self):
          
          is_checked = self.custom_north_arrow_checkbox.isChecked()
          if is_checked:
              # Show previous north arrow path
              path = setting(
                  key='north_arrow_path',
                  default=default_north_arrow_path(),
                  expected_type=str,
                  qsettings=self.settings)
          else:
              # Set the north arrow line edit to default one
              path = default_north_arrow_path()
  
          self.leNorthArrowPath.setText(path)
          self.splitter_north_arrow.setEnabled(is_checked)
docs: Auto-connect slot activated when north arrow checkbox is toggled.