MCPcopy Create free account
hub / github.com/cztomczak/cefpython / LoadUrl

Method LoadUrl

src/cefpython3.wx/chromectrl.py:219–235  ·  view source on GitHub ↗
(self, url, onLoadStart=None, onLoadEnd=None)

Source from the content-addressed store, hash-verified

217 return self.browser
218
219 def LoadUrl(self, url, onLoadStart=None, onLoadEnd=None):
220 if onLoadStart or onLoadEnd:
221 self.GetBrowser().SetClientHandler(
222 CallbackClientHandler(onLoadStart, onLoadEnd))
223
224 browser = self.GetBrowser()
225 if cefpython.g_debug:
226 Debug("LoadUrl() self: %s" % self)
227 Debug("browser: %s" % browser)
228 Debug("browser id: %s" % browser.GetIdentifier())
229 Debug("mainframe: %s" % browser.GetMainFrame())
230 Debug("mainframe id: %s" % \
231 browser.GetMainFrame().GetIdentifier())
232 self.GetBrowser().GetMainFrame().LoadUrl(url)
233
234 #wx.CallLater(100, browser.ReloadIgnoreCache)
235 #wx.CallLater(200, browser.GetMainFrame().LoadUrl, url)
236
237
238class ChromeCtrl(wx.Panel):

Callers 2

on_load_urlMethod · 0.80
onGoUrlMethod · 0.80

Calls 4

GetBrowserMethod · 0.95
DebugFunction · 0.85
SetClientHandlerMethod · 0.80

Tested by

no test coverage detected