code: def clicked(self):
          
          fnames = self.get_selected_filenames()
          for fname in fnames:
              if osp.isdir(fname):
                  self.directory_clicked(fname)
              else:
                  self.open([fname])
docs: Selected item was double-clicked or enter/return was pressed