code: def set_widgets(self):
          
          # Set title from keyword first, if not found use layer name
          if self.parent.layer:
              if self.parent.get_existing_keyword('title'):
                  title = self.parent.get_existing_keyword('title')
              else:
                  title = self.parent.layer.name()
              self.leTitle.setText(title)
docs: Set widgets on the Title tab.