eric6/E5Gui/E5MainWindow.py

changeset 7836
2f0d208b8137
parent 7785
9978016560ec
child 7923
91e843545d9a
equal deleted inserted replaced
7835:0835ed67714b 7836:2f0d208b8137
48 # step 2: set a style sheet 48 # step 2: set a style sheet
49 if styleSheetFile: 49 if styleSheetFile:
50 try: 50 try:
51 with open(styleSheetFile, "r", encoding="utf-8") as f: 51 with open(styleSheetFile, "r", encoding="utf-8") as f:
52 styleSheet = f.read() 52 styleSheet = f.read()
53 except (IOError, OSError) as msg: 53 except OSError as msg:
54 E5MessageBox.warning( 54 E5MessageBox.warning(
55 self, 55 self,
56 QCoreApplication.translate( 56 QCoreApplication.translate(
57 "E5MainWindow", "Loading Style Sheet"), 57 "E5MainWindow", "Loading Style Sheet"),
58 QCoreApplication.translate( 58 QCoreApplication.translate(

eric ide

mercurial