(self)
return file_path
Get module name from user and open it.

        Return module path or None for calls by open_module_browser
        when latter is not invoked in named editor window.
Get module name from user and open it.
Get module name from user and open it .
def open_module(self):
        """Get module name from user and open it.

        Return module path or None for calls by open_module_browser
        when latter is not invoked in named editor window.
        """
        # XXX This, open_module_browser, and open_path_browser
        # would fit better in iomenu.IOBinding.
        try:
            name = self.text.get("sel.first", "sel.last").strip()
        except TclError:
            name = ''
        file_path = query.ModuleName(
                self.text, "Open Module",
                "Enter the name of a Python module\n"
                "to search on sys.path and open:",
                name).result
        if file_path is not None:
            if self.flist:
                self.flist.open(file_path)
            else:
                self.io.loadfile(file_path)
        return file_path
def open_module ( self ) : # XXX This, open_module_browser, and open_path_browser # would fit better in iomenu.IOBinding. try : name = self . text . get ( "sel.first" , "sel.last" ) . strip ( ) except TclError : name = '' file_path = query . ModuleName ( self . text , "Open Module" , "Enter the name of a Python module\n" "to search on sys.path and open:" , name ) . result if file_path is not None : if self . flist : self . flist . open ( file_path ) else : self . io . loadfile ( file_path ) return file_path