code: def OnSelChanged(self, event):
          
          # Get the selected item object
          item = event.GetItem()
          obj = self.leftPanel.model.ItemToObject(item)
          if isinstance(obj, compass.Survey):
              l = [
                  'Survey Name: %s' % obj.name,
                  'Survey Date: %s' % obj.date,
                  'Comment: %s' % obj.comment,
                  'Team: %s' % ', '.join(obj.team),
                  'Surveyed Footage: %0.1f' % obj.length,
                  '',
                  ]
              l.extend(['  '.join(['%s: %s' % (k,v) for (k,v) in shot.items()]) for shot in obj.shots])
              self.display.SetLabel(str('\n'.join(l)))
          else:
              self.display.SetLabel('')
docs: Method called when selected item is changed