def code(self, editor=None):
        if editor is None:
            editor = self.tabs.currentWidget()
        return [editor.get_text_line(l)
                for l in xrange(editor.get_line_count())]
Returns code for an editor object as a list of strings (one
dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/ui/plugin_editor_dock.py/PluginEditorDock.code