Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Pythonとpyqt4でブラウザを開発していますが、loaderrorに何を入れたのかわかりません
try: self.webView.load(QtCore.QUrl(self.lineEdit.text())) except loaderreur: self.webView.load(QtCore.QUrl('erreur.html'))
ページが存在しない場合thx
選択したブラウザをロードしてみて、存在しないページが与えられたときにブラウザが何をするかを確認してください。
その動作を模倣することをお勧めします(汎用404ページ)。