def create_dock_panes(self):
     """ Create the file browser and connect to its double click event.
     """
     browser = PythonScriptBrowserPane()
     handler = lambda: self._open_file(browser.selected_file)
     browser.on_trait_change(handler, 'activated')
     return [browser]
示例#2
0
 def create_dock_panes(self):
     """ Create the file browser and connect to its double click event.
     """
     browser = PythonScriptBrowserPane()
     handler = lambda: self._open_file(browser.selected_file)
     browser.on_trait_change(handler, 'activated')
     return [ browser ]