Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(21)  |  Call(21)  |  Derive(0)  |  Import(0)

src/n/i/ninja-ide-HEAD/ninja_ide/gui/main_panel/main_container.py   ninja-ide(Download)
            if not editorWidget.file_path:
                self.save_file()
            ext = file_manager.get_file_extension(editorWidget.file_path)
            if ext == 'html':
                webbrowser.open(editorWidget.file_path)
 
        for filename in fileNames:
            if file_manager.get_file_extension(filename) in ('jpg', 'png'):
                logger.debug("will open as image")
                self.open_image(filename)
            filters = '(*.py);;(*.*)'
            if editorWidget.file_path:
                ext = file_manager.get_file_extension(editorWidget.file_path)
                if ext != 'py':
                    filters = '(*.%s);;(*.py);;(*.*)' % ext
            editorWidget.neditable.save_content(path=fileName)
            editorWidget.register_syntax(
                file_manager.get_file_extension(fileName))
 
            self.emit(SIGNAL("fileSaved(QString)"),

src/n/i/ninja-ide-HEAD/ninja_ide/gui/explorer/tabs/tree_projects_widget.py   ninja-ide(Download)
        else:
            filename = self.model().fileName(index)
            lang = file_manager.get_file_extension(filename)
            self._add_context_menu_for_files(menu, lang)
 

src/n/i/ninja-ide-HEAD/ninja_ide/tools/locator/locator.py   ninja-ide(Download)
    def _grep_file_symbols(self, file_path, file_name):
        #type - file_name - file_path
        global mapping_symbols
        exts = settings.SYNTAX.get('python')['extension']
        file_ext = file_manager.get_file_extension(file_path)
    def get_symbols_for_class(self, file_path, clazzName):
        results = []
        with open(file_path) as f:
            content = f.read()
            ext = file_manager.get_file_extension(file_path)

src/n/i/ninja-ide-HEAD/ninja_ide/gui/tools_dock/run_widget.py   ninja-ide(Download)
        if filePreExec.exists() and \
          bool(QFile.ExeUser & filePreExec.permissions()):
            ext = file_manager.get_file_extension(self.preExec)
            if not self.pythonExec:
                self.pythonExec = settings.PYTHON_PATH
        if filePostExec.exists() and \
          bool(QFile.ExeUser & filePostExec.permissions()):
            ext = file_manager.get_file_extension(self.postExec)
            if not self.pythonExec:
                self.pythonExec = settings.PYTHON_PATH

src/n/i/ninja-ide-HEAD/ninja_ide/core/plugin_services.py   ninja-ide(Download)
 
        if editorWidget is not None:
            ext = file_manager.get_file_extension(editorWidget.ID)
            lang = settings.EXTENSIONS.get(ext, '')
            syntax = settings.SYNTAX.get(lang, {})

src/n/i/ninja-ide-HEAD/ninja_ide/gui/editor/helpers.py   ninja-ide(Download)
def insert_horizontal_line(editorWidget):
    editorWidget.moveCursor(QTextCursor.StartOfLine, QTextCursor.KeepAnchor)
    text = editorWidget.textCursor().selection().toPlainText()
    editorWidget.moveCursor(QTextCursor.EndOfLine, QTextCursor.MoveAnchor)
    lang = file_manager.get_file_extension(editorWidget.file_path)
        editorWidget.moveCursor(QTextCursor.StartOfLine,
            QTextCursor.MoveAnchor)
        lang = file_manager.get_file_extension(editorWidget.file_path)
        key = settings.EXTENSIONS.get(lang, 'python')
        comment_wildcard = settings.SYNTAX[key].get('comment', ['#'])[0]
    block_end = editorWidget.document().findBlock(
        cursor.selectionEnd()).next()
    lang = file_manager.get_file_extension(editorWidget.file_path)
    key = settings.EXTENSIONS.get(lang, 'python')
    same_line = (block_start == block_end.previous())
    block_end = editorWidget.document().findBlock(
        cursor.selectionEnd()).next()
    lang = file_manager.get_file_extension(editorWidget.file_path)
    key = settings.EXTENSIONS.get(lang, 'python')
    same_line = (block_start == block_end.previous())

src/n/i/ninja-ide-HEAD/ninja_ide/gui/tools_dock/tools_dock.py   ninja-ide(Download)
                      editorWidget.file_path)
            main_container.save_file(editorWidget)
            ext = file_manager.get_file_extension(editorWidget.file_path)
            #TODO: Remove the IF statment and use Handlers
            if ext == 'py':

src/n/i/ninja-ide-HEAD/ninja_ide/tools/locator/locator_widget.py   ninja-ide(Download)
                exts = settings.SYNTAX.get('python')['extension']
                file_ext = file_manager.get_file_extension(
                    editorWidget.file_path)
                if file_ext in exts:
                    filterOptions.insert(0, locator.FILTERS['files'])
                exts = settings.SYNTAX.get('python')['extension']
                file_ext = file_manager.get_file_extension(
                    editorWidget.file_path)
                if file_ext in exts:
                    filterOptions.insert(0, locator.FILTERS['files'])

src/n/i/ninja-ide-HEAD/ninja_ide/gui/editor/checkers/pep8_checker.py   ninja-ide(Download)
    def run(self):
        self.sleep(1)
        exts = settings.SYNTAX.get('python')['extension']
        file_ext = file_manager.get_file_extension(self._path)
        if file_ext in exts:

src/n/i/ninja-ide-HEAD/ninja_ide/gui/editor/checkers/migration_2to3.py   ninja-ide(Download)
    def run(self):
        self.sleep(1)
        exts = settings.SYNTAX.get('python')['extension']
        file_ext = file_manager.get_file_extension(self._path)
        if file_ext in exts:

  1 | 2  Next