¡@

Home 

python Programming Glossary: mywebpage

How do I display a website with html-forms locally using python and collect the user input?

http://stackoverflow.com/questions/10121864/how-do-i-display-a-website-with-html-forms-locally-using-python-and-collect-the

view QtWebKit.QWebView # intercept form submits class MyWebPage QtWebKit.QWebPage def acceptNavigationRequest self frame req.. view.setHtml text return False else return super MyWebPage self .acceptNavigationRequest frame req nav_type view.setPage.. .acceptNavigationRequest frame req nav_type view.setPage MyWebPage # setup the html form html form action method get Like it input..

PyQt Webkit and html forms: Fetching output and closing window

http://stackoverflow.com/questions/12240195/pyqt-webkit-and-html-forms-fetching-output-and-closing-window

import from PyQt4.QtWebKit import elements like text class MyWebPage QWebPage def acceptNavigationRequest self frame req nav_type.. .queryItems print text return True else return super MyWebPage self .acceptNavigationRequest frame req nav_type class Window.. layout QVBoxLayout self layout.addWidget view view.setPage MyWebPage view.setHtml html # setup the html form html form action method..