function make_set_mode(info) {
            return function () {
                editor.set_codemirror_mode(info);
            };
        }
Constructor

A MenuBar Class to generate the menubar of IPython notebook

Parameters:
 selector: string
 options: dictionary
     Dictionary of keyword arguments.
         codemirror: CodeMirror instance
         contents: ContentManager instance
         events: $(Events) instance
         base_url : string
         file_path : string