tags:

views:

36

answers:

2

I developpe a browser with python and pyqt4 but I don't know what I put in loaderror

try: 
    self.webView.load(QtCore.QUrl(self.lineEdit.text()))
except loaderreur:
    self.webView.load(QtCore.QUrl('erreur.html'))

when the page doesn't exist thx

A: 

Try loading up your browser of choice, and see what they do when given a page that doesn't exist.

You likely want to mimic that behaviour (Generic 404 page).

Anon.
A: 

thx for your answer ; but i dont understaund you !!

brou1986
what Anon suggested is look at a website and see how they present a page thats not present and try to mimic that
Anthony Forloney