本文整理汇总了Python中PyQt4.QtCore.QStringList.sort方法的典型用法代码示例。如果您正苦于以下问题:Python QStringList.sort方法的具体用法?Python QStringList.sort怎么用?Python QStringList.sort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt4.QtCore.QStringList
的用法示例。
在下文中一共展示了QStringList.sort方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getSaveFileFiltersList
# 需要导入模块: from PyQt4.QtCore import QStringList [as 别名]
# 或者: from PyQt4.QtCore.QStringList import sort [as 别名]
#.........这里部分代码省略.........
<< QApplication.translate('Lexers',
"HTML Files (*.html)") \
<< QApplication.translate('Lexers',
"PHP Files (*.php)") \
<< QApplication.translate('Lexers',
"ASP Files (*.asp)") \
<< QApplication.translate('Lexers',
"CSS Files (*.css)") \
<< QApplication.translate('Lexers',
"QSS Files (*.qss)") \
<< QApplication.translate('Lexers',
"XML Files (*.xml)") \
<< QApplication.translate('Lexers',
"XSL Files (*.xsl)") \
<< QApplication.translate('Lexers',
"DTD Files (*.dtd)") \
<< QApplication.translate('Lexers',
"Qt Resource Files (*.qrc)") \
<< QApplication.translate('Lexers',
"D Files (*.d)") \
<< QApplication.translate('Lexers',
"D Interface Files (*.di)") \
<< QApplication.translate('Lexers',
"Java Files (*.java)") \
<< QApplication.translate('Lexers',
"JavaScript Files (*.js)") \
<< QApplication.translate('Lexers',
"SQL Files (*.sql)") \
<< QApplication.translate('Lexers',
"Docbook Files (*.docbook)") \
<< QApplication.translate('Lexers',
"Perl Files (*.pl)") \
<< QApplication.translate('Lexers',
"Perl Module Files (*.pm)") \
<< QApplication.translate('Lexers',
"Lua Files (*.lua)") \
<< QApplication.translate('Lexers',
"Shell Files (*.sh)") \
<< QApplication.translate('Lexers',
"Batch Files (*.bat)") \
<< QApplication.translate('Lexers',
"TeX Files (*.tex)") \
<< QApplication.translate('Lexers',
"TeX Template Files (*.sty)") \
<< QApplication.translate('Lexers',
"Diff Files (*.diff)") \
<< QApplication.translate('Lexers',
"Make Files (*.mak)") \
<< QApplication.translate('Lexers',
"Properties Files (*.ini)") \
<< QApplication.translate('Lexers',
"Configuration Files (*.cfg)") \
<< QApplication.translate('Lexers',
'Povray Files (*.pov)') \
<< QApplication.translate('Lexers',
'CMake Files (CMakeLists.txt)') \
<< QApplication.translate('Lexers',
'CMake Macro Files (*.cmake)') \
<< QApplication.translate('Lexers',
'VHDL Files (*.vhd)')
if QSCINTILLA_VERSION() >= 0x020201:
saveFileFiltersList \
<< QApplication.translate('Lexers',
'TCL Files (*.tcl)') \
<< QApplication.translate('Lexers',
'Tk Files (*.tk)') \
<< QApplication.translate('Lexers',
'Fortran Files (*.f95)') \
<< QApplication.translate('Lexers',
'Fortran77 Files (*.f)') \
<< QApplication.translate('Lexers',
'Pascal Files (*.pas)') \
<< QApplication.translate('Lexers',
'PostScript Files (*.ps)') \
<< QApplication.translate('Lexers',
'YAML Files (*.yml)')
if QSCINTILLA_VERSION() >= 0x020501:
saveFileFiltersList \
<< QApplication.translate('Lexers',
'Matlab Files (*.m)') \
<< QApplication.translate('Lexers',
'Octave Files (*.m.octave)')
for name in LexerRegistry:
saveFileFiltersList << LexerRegistry[name][4]
if withAdditional:
saveFileFiltersList += Preferences.getEditor("AdditionalSaveFilters")
saveFileFiltersList.sort()
if includeAll:
saveFileFiltersList.append(QApplication.translate('Lexers', 'All Files (*)'))
if asString:
return saveFileFiltersList.join(';;')
else:
return saveFileFiltersList
示例2: getOpenFileFiltersList
# 需要导入模块: from PyQt4.QtCore import QStringList [as 别名]
# 或者: from PyQt4.QtCore.QStringList import sort [as 别名]
#.........这里部分代码省略.........
openFileFiltersList = QStringList() \
<< QApplication.translate('Lexers',
'Python Files (*.py *.py3)') \
<< QApplication.translate('Lexers',
'Python GUI Files (*.pyw *.pyw3)') \
<< QApplication.translate('Lexers',
'Pyrex Files (*.pyx)') \
<< QApplication.translate('Lexers',
'Quixote Template Files (*.ptl)') \
<< QApplication.translate('Lexers',
'Ruby Files (*.rb)') \
<< QApplication.translate('Lexers',
'IDL Files (*.idl)') \
<< QApplication.translate('Lexers',
'C Files (*.h *.c)') \
<< QApplication.translate('Lexers',
'C++ Files (*.h *.hpp *.hh *.cxx *.cpp *.cc)') \
<< QApplication.translate('Lexers',
'C# Files (*.cs)') \
<< QApplication.translate('Lexers',
'HTML Files (*.html *.htm *.asp *.shtml)') \
<< QApplication.translate('Lexers',
'CSS Files (*.css)') \
<< QApplication.translate('Lexers',
'QSS Files (*.qss)') \
<< QApplication.translate('Lexers',
'PHP Files (*.php *.php3 *.php4 *.php5 *.phtml)') \
<< QApplication.translate('Lexers',
'XML Files (*.xml *.xsl *.xslt *.dtd *.svg *.xul *.xsd)') \
<< QApplication.translate('Lexers',
'Qt Resource Files (*.qrc)') \
<< QApplication.translate('Lexers',
'D Files (*.d *.di)') \
<< QApplication.translate('Lexers',
'Java Files (*.java)') \
<< QApplication.translate('Lexers',
'JavaScript Files (*.js)') \
<< QApplication.translate('Lexers',
'SQL Files (*.sql)') \
<< QApplication.translate('Lexers',
'Docbook Files (*.docbook)') \
<< QApplication.translate('Lexers',
'Perl Files (*.pl *.pm *.ph)') \
<< QApplication.translate('Lexers',
'Lua Files (*.lua)') \
<< QApplication.translate('Lexers',
'Tex Files (*.tex *.sty *.aux *.toc *.idx)') \
<< QApplication.translate('Lexers',
'Shell Files (*.sh)') \
<< QApplication.translate('Lexers',
'Batch Files (*.bat *.cmd)') \
<< QApplication.translate('Lexers',
'Diff Files (*.diff *.patch)') \
<< QApplication.translate('Lexers',
'Makefiles (*.mak)') \
<< QApplication.translate('Lexers',
'Properties Files (*.properties *.ini *.inf *.reg *.cfg *.cnf *.rc)') \
<< QApplication.translate('Lexers',
'Povray Files (*.pov)') \
<< QApplication.translate('Lexers',
'CMake Files (CMakeLists.txt *.cmake *.ctest)') \
<< QApplication.translate('Lexers',
'VHDL Files (*.vhd *.vhdl)')
if QSCINTILLA_VERSION() >= 0x020201:
openFileFiltersList \
<< QApplication.translate('Lexers',
'TCL/Tk Files (*.tcl *.tk)') \
<< QApplication.translate('Lexers',
'Fortran Files (*.f90 *.f95 *.f2k)') \
<< QApplication.translate('Lexers',
'Fortran77 Files (*.f *.for)') \
<< QApplication.translate('Lexers',
'Pascal Files (*.dpr *.dpk *.pas *.dfm *.inc *.pp)') \
<< QApplication.translate('Lexers',
'PostScript Files (*.ps)') \
<< QApplication.translate('Lexers',
'YAML Files (*.yaml *.yml)')
if QSCINTILLA_VERSION() >= 0x020501:
openFileFiltersList \
<< QApplication.translate('Lexers',
'Matlab Files (*.m *.m.matlab)') \
<< QApplication.translate('Lexers',
'Octave Files (*.m *.m.octave)')
for name in LexerRegistry:
openFileFiltersList << LexerRegistry[name][3]
if withAdditional:
openFileFiltersList += Preferences.getEditor("AdditionalOpenFilters")
openFileFiltersList.sort()
if includeAll:
openFileFiltersList.append(QApplication.translate('Lexers', 'All Files (*)'))
if asString:
return openFileFiltersList.join(';;')
else:
return openFileFiltersList