src/eric7/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py

branch
eric7
changeset 11006
a671918232f3
parent 10692
9becf9ca115c
child 11090
f5f5f5803935
equal deleted inserted replaced
11005:b918c6c2736b 11006:a671918232f3
593 if self.lexer: 593 if self.lexer:
594 preselect = [self.lexer.language()] 594 preselect = [self.lexer.language()]
595 else: 595 else:
596 preselect = [] 596 preselect = []
597 dlg = EditorHighlightingStylesSelectionDialog( 597 dlg = EditorHighlightingStylesSelectionDialog(
598 lexerNames, forImport=False, preselect=preselect 598 lexerNames, forImport=False, preselect=preselect, parent=self
599 ) 599 )
600 if dlg.exec() == QDialog.DialogCode.Accepted: 600 if dlg.exec() == QDialog.DialogCode.Accepted:
601 lexerNames = dlg.getLexerNames() 601 lexerNames = dlg.getLexerNames()
602 else: 602 else:
603 # Cancelled by user 603 # Cancelled by user
687 ) 687 )
688 688
689 lexerNames = [d["name"] for d in stylesList if d["name"] in self.lexers] 689 lexerNames = [d["name"] for d in stylesList if d["name"] in self.lexers]
690 690
691 if not importAll: 691 if not importAll:
692 dlg = EditorHighlightingStylesSelectionDialog(lexerNames, forImport=True) 692 dlg = EditorHighlightingStylesSelectionDialog(
693 lexerNames, forImport=True, parent=self
694 )
693 if dlg.exec() == QDialog.DialogCode.Accepted: 695 if dlg.exec() == QDialog.DialogCode.Accepted:
694 lexerNames = dlg.getLexerNames() 696 lexerNames = dlg.getLexerNames()
695 else: 697 else:
696 # Cancelled by user 698 # Cancelled by user
697 return 699 return

eric ide

mercurial