def operate_selected_rows(self, operator):
model, tree_paths = self.selection.get_selected_rows()<EOL>if not tree_paths:<EOL><INDENT>return<EOL><DEDENT>fids = []<EOL>for tree_path in tree_paths:<EOL><INDENT>fids.append(model[tree_path][FID_COL])<EOL><DEDENT>for fid in fids:<EOL><INDENT>row = self.get_row_by_fid(fid)<EOL>if row:<EOL><INDENT>operator(row)<EOL><DEDENT><DEDENT>
对选中的条目进行操作.

        operator  - 处理函数