Preferences/ConfigurationPages/EditorHighlightingStylesPage.py

changeset 5976
549918576245
parent 5736
000ea446ff4b
child 6048
82ad8ec9548c
equal deleted inserted replaced
5975:3bc24855b254 5976:549918576245
477 Private method to import the styles of the given lexers. 477 Private method to import the styles of the given lexers.
478 478
479 @param lexers dictionary of lexer objects for which to import the 479 @param lexers dictionary of lexer objects for which to import the
480 styles 480 styles
481 """ 481 """
482 from eric6config import getConfig
483 stylesDir = getConfig("ericStylesDir")
484
482 fn = E5FileDialog.getOpenFileName( 485 fn = E5FileDialog.getOpenFileName(
483 self, 486 self,
484 self.tr("Import Highlighting Styles"), 487 self.tr("Import Highlighting Styles"),
485 "", 488 stylesDir,
486 self.tr("Highlighting styles file (*.e4h)")) 489 self.tr("Highlighting styles file (*.e4h)"))
487 490
488 if not fn: 491 if not fn:
489 return 492 return
490 493

eric ide

mercurial