code: def on_drag_data_get(self, widget, context, data, info, time):
          '''拖放开始'''
          tree_paths = self.iconview.get_selected_items()
          if not tree_paths:
              return
          filelist = []
          for tree_path in tree_paths:
              filelist.append({
                  'path': self.liststore[tree_path][PATH_COL],
                  'newname': self.liststore[tree_path][NAME_COL],
              })
          filelist_str = json.dumps(filelist)
          if info == TargetInfo.PLAIN_TEXT:
              data.set_text(filelist_str, -1)
          # 拖拽时无法获取目标路径, 所以不能实现拖拽下载功能
          elif info == TargetInfo.URI_LIST:
              data.set_uris([]f on_drag_data_get(self, widget, context, data, info, time):
          '''拖放开始'''
          tree_paths = self.iconview.get_selected_items()
          if not tree_paths:
              return
          filelist = []
          for tree_path in tree_paths:
              filelist.append({
                  'path': self.liststore[tree_path][PATH_COL],
                  'newname': self.liststore[tree_path][NAME_COL],
              })
          filelist_str = json.dumps(filelist)
          if info == TargetInfo.PLAIN_TEXT:
              data.set_text(filelist_str, -1)
          # 拖拽时无法获取目标路径, 所以不能实现拖拽下载功能
          elif info == TargetInfo.URI_LIST:
              data.set_uris([])
docs: 拖放开始