Python Forum

Full Version: Event fired multiple times
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Setting up below is to get the event fired when a webpage loaded. I am wondering why self.On_Web_View_Loaded() will be called many times when a webpage loaded. Is there a way to just fire once for each loading? Thanks.
self.Bind(wx.html2.EVT_WEBVIEW_LOADED, self.On_Web_View_Loaded, self.wv)
self.wv.LoadURL('http://webpage.htm')
Almost impossible to answer without seeing code in context