code: def name(self):
          
          # Name, explicitely set for the pane.
          if self.chosen_name:
              return self.chosen_name
          else:
              # Name from the process running inside the pane.
              name = self.process.get_name()
              if name:
                  return os.path.basename(name)
  
          return ''
docs: The name for the window as displayed in the title bar and status bar.