summaryrefslogtreecommitdiffstats
path: root/WebKit/wx/bindings/python/samples/simple.py
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/wx/bindings/python/samples/simple.py')
-rw-r--r--WebKit/wx/bindings/python/samples/simple.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/WebKit/wx/bindings/python/samples/simple.py b/WebKit/wx/bindings/python/samples/simple.py
index 52d4e1b..2756760 100644
--- a/WebKit/wx/bindings/python/samples/simple.py
+++ b/WebKit/wx/bindings/python/samples/simple.py
@@ -92,11 +92,11 @@ class TestPanel(wx.Panel):
def OnStateChanged(self, event):
statusbar = self.GetParent().GetStatusBar()
if statusbar:
- if event.GetState() == wx.webview.WEBVIEW_STATE_NEGOTIATING:
+ if event.GetState() == wx.webview.WEBVIEW_LOAD_NEGOTIATING:
statusbar.SetStatusText("Contacting " + event.GetURL())
- elif event.GetState() == wx.webview.WEBVIEW_STATE_TRANSFERRING:
+ elif event.GetState() == wx.webview.WEBVIEW_LOAD_TRANSFERRING:
statusbar.SetStatusText("Loading " + event.GetURL())
- elif event.GetState() == wx.webview.WEBVIEW_STATE_STOP:
+ elif event.GetState() == wx.webview.WEBVIEW_LOAD_DOC_COMPLETED:
statusbar.SetStatusText("")
self.location.SetValue(event.GetURL())
self.GetParent().SetTitle("wxWebView - " + self.webview.GetPageTitle())