79 from WebBrowser.WebBrowserPage import WebBrowserPage |
79 from WebBrowser.WebBrowserPage import WebBrowserPage |
80 if worldId == WebBrowserPage.SafeJsWorld: |
80 if worldId == WebBrowserPage.SafeJsWorld: |
81 match = "// @exclude eric:*" |
81 match = "// @exclude eric:*" |
82 else: |
82 else: |
83 match = "// @include eric:*" |
83 match = "// @include eric:*" |
84 return source.format( |
84 return source.format(match, getJavascript("qwebchannel.js")) |
85 match, readAllFileContents(":/javascript/qwebchannel.js")) |
|
86 |
85 |
87 |
86 |
88 def setupWindowObject(): |
87 def setupWindowObject(): |
89 """ |
88 """ |
90 Function generating a script to setup window.object add-ons. |
89 Function generating a script to setup window.object add-ons. |