218 try: |
218 try: |
219 with open(filename, "r", encoding="utf-8") as f: |
219 with open(filename, "r", encoding="utf-8") as f: |
220 styleSheet = f.read() |
220 styleSheet = f.read() |
221 except OSError as msg: |
221 except OSError as msg: |
222 EricMessageBox.warning( |
222 EricMessageBox.warning( |
223 self, |
223 None, |
224 QCoreApplication.translate( |
224 QCoreApplication.translate( |
225 "EricApplication", "Loading Style Sheet"), |
225 "EricApplication", "Loading Style Sheet"), |
226 QCoreApplication.translate( |
226 QCoreApplication.translate( |
227 "EricApplication", |
227 "EricApplication", |
228 """<p>The Qt Style Sheet file <b>{0}</b> could""" |
228 """<p>The Qt Style Sheet file <b>{0}</b> could""" |