3 |
3 |
4 # Copyright (c) 2002 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> |
4 # Copyright (c) 2002 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> |
5 # |
5 # |
6 |
6 |
7 """ |
7 """ |
8 Eric6 Web Browser. |
8 eric Web Browser. |
9 |
9 |
10 This is the main Python script that performs the necessary initialization |
10 This is the main Python script that performs the necessary initialization |
11 of the web browser and starts the Qt event loop. This is a standalone version |
11 of the web browser and starts the Qt event loop. This is a standalone version |
12 of the integrated web browser. It is based on QtWebEngine. |
12 of the integrated web browser. It is based on QtWebEngine. |
13 """ |
13 """ |
58 from PyQt5.QtWidgets import QApplication |
58 from PyQt5.QtWidgets import QApplication |
59 from E5Gui import E5MessageBox # __IGNORE_WARNING__ |
59 from E5Gui import E5MessageBox # __IGNORE_WARNING__ |
60 app = QApplication([]) |
60 app = QApplication([]) |
61 QTimer.singleShot(0, lambda: E5MessageBox.critical( |
61 QTimer.singleShot(0, lambda: E5MessageBox.critical( |
62 None, |
62 None, |
63 "eric6 Web Browser", |
63 "eric Web Browser", |
64 "QtWebEngineWidgets is not installed but needed to execute the" |
64 "QtWebEngineWidgets is not installed but needed to execute the" |
65 " web browser.")) |
65 " web browser.")) |
66 app.exec() |
66 app.exec() |
67 sys.exit(100) |
67 sys.exit(100) |
68 |
68 |
153 ("--settings=settingsDir", |
153 ("--settings=settingsDir", |
154 "use the given directory to store the settings files"), |
154 "use the given directory to store the settings files"), |
155 ("--single", "start the browser as a single application"), |
155 ("--single", "start the browser as a single application"), |
156 ] |
156 ] |
157 appinfo = AppInfo.makeAppInfo(sys.argv, |
157 appinfo = AppInfo.makeAppInfo(sys.argv, |
158 "eric6 Web Browser", |
158 "eric Web Browser", |
159 "file", |
159 "file", |
160 "web browser", |
160 "web browser", |
161 options) |
161 options) |
162 |
162 |
163 # set the library paths for plugins |
163 # set the library paths for plugins |