src/eric7/eric7_browser.py

branch
eric7
changeset 9473
3f23dbf37dbe
parent 9413
80c06d472826
child 9482
a2bc06a54d9d
equal deleted inserted replaced
9472:5798ee4a8807 9473:3f23dbf37dbe
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 """
14 14
15 import os
15 import sys 16 import sys
16 import os
17 17
18 app = None 18 app = None
19 SettingsDir = None 19 SettingsDir = None
20 20
21 from eric7 import Globals 21 from eric7 import Globals
41 from PyQt6 import QtWebEngineWidgets # __IGNORE_WARNING__ 41 from PyQt6 import QtWebEngineWidgets # __IGNORE_WARNING__
42 except ImportError: 42 except ImportError:
43 if "--quiet" not in sys.argv: 43 if "--quiet" not in sys.argv:
44 from PyQt6.QtCore import QTimer 44 from PyQt6.QtCore import QTimer
45 from PyQt6.QtWidgets import QApplication 45 from PyQt6.QtWidgets import QApplication
46
46 from eric7.EricWidgets import EricMessageBox # __IGNORE_WARNING__ 47 from eric7.EricWidgets import EricMessageBox # __IGNORE_WARNING__
47 48
48 app = QApplication([]) 49 app = QApplication([])
49 QTimer.singleShot( 50 QTimer.singleShot(
50 0, 51 0,
58 app.exec() 59 app.exec()
59 sys.exit(100) 60 sys.exit(100)
60 61
61 from PyQt6.QtWebEngineCore import QWebEngineUrlScheme 62 from PyQt6.QtWebEngineCore import QWebEngineUrlScheme
62 63
64 from eric7.EricWidgets.EricApplication import EricApplication
63 from eric7.Globals import AppInfo 65 from eric7.Globals import AppInfo
64
65 from eric7.EricWidgets.EricApplication import EricApplication
66
67 from eric7.Toolbox import Startup 66 from eric7.Toolbox import Startup
68
69 from eric7.WebBrowser.WebBrowserSingleApplication import ( 67 from eric7.WebBrowser.WebBrowserSingleApplication import (
70 WebBrowserSingleApplicationClient, 68 WebBrowserSingleApplicationClient,
71 ) 69 )
72 70
73 71

eric ide

mercurial