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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Gets the list of all supported file types
@return: list of strings

        def GetLexerList():
    """Gets the list of all supported file types
    @return: list of strings

    """ 
    f_types = synglob.LANG_MAP.keys()
    f_types.sort(key=unicode.lower)
    return f_types
        


src/e/i/einstein-HEAD/Python25Einstein/Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/src/style_editor.py   einstein(Download)
                                  _("Syntax Files") + u": ")
        lexer_lst = wx.Choice(self.ctrl_pane, ed_glob.ID_LEXER, 
                              choices=syntax.GetLexerList())
        lexer_lst.SetToolTip(wx.ToolTip(_("Set the preview file type")))
        lexer_lst.SetStringSelection(u"CPP")

src/e/d/Editra-0.7.20/src/prefdlg.py   Editra(Download)
        # General Section
        dlex_ch = ExChoice(self, ed_glob.ID_PREF_DLEXER,
                           choices=syntax.GetLexerList(),
                           default=Profile_Get('DEFAULT_LEX',
                                               default="Plain Text"))

src/e/d/Editra-0.7.20/src/style_editor.py   Editra(Download)
        lexer_lbl = wx.StaticText(cbar, label=_("Preview File") + u": ")
        lexer_lst = wx.Choice(cbar, ed_glob.ID_LEXER,
                              choices=syntax.GetLexerList())
        lexer_lst.SetToolTip(wx.ToolTip(_("Set the preview file type")))
        lexer_lst.SetStringSelection(u"CPP")

src/e/d/Editra-0.7.20/tests/unittests/testSyntaxFunctions.py   Editra(Download)
    def testGetLexerList(self):
        """Test getting the list of available languages"""
        langs = syntax.GetLexerList()
        self.assertTrue(isinstance(langs, list))
        self.assertTrue(synglob.LANG_PYTHON in langs)