def set_editor(self, editor):
if self._editor is not None:<EOL><INDENT>try:<EOL><INDENT>self._editor.offset_calculator.pic_infos_available.disconnect(<EOL>self._update)<EOL><DEDENT>except (AttributeError, RuntimeError, ReferenceError):<EOL><INDENT>pass<EOL><DEDENT><DEDENT>self._editor = weakref.proxy(editor) if editor else editor<EOL>try:<EOL><INDENT>self._editor.offset_calculator.pic_infos_available.connect(<EOL>self._update)<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>
Sets the associated editor, when the editor's offset calculator mode
emit the signal pic_infos_available, the table is automatically
refreshed.

You can also refresh manually by calling :meth:`update_pic_infos`.