def on_drag_data_get(self, widget, context, data, info, time):
tree_paths = self.iconview.get_selected_items()<EOL>if not tree_paths:<EOL><INDENT>return<EOL><DEDENT>filelist = []<EOL>for tree_path in tree_paths:<EOL><INDENT>filelist.append({<EOL>'<STR_LIT:path>': self.liststore[tree_path][PATH_COL],<EOL>'<STR_LIT>': self.liststore[tree_path][NAME_COL],<EOL>})<EOL><DEDENT>filelist_str = json.dumps(filelist)<EOL>if info == TargetInfo.PLAIN_TEXT:<EOL><INDENT>data.set_text(filelist_str, -<NUM_LIT:1>)<EOL><DEDENT>elif info == TargetInfo.URI_LIST:<EOL><INDENT>data.set_uris([])<EOL><DEDENT>
拖放开始