示例#1
0
def browser(qtbot):
    """Set up WebBrowser."""
    WebBrowser.CONF_SECTION = ''
    widget = WebBrowser(None)
    widget.show()
    yield widget
    widget.webview.stop()
    widget.close()
示例#2
0
def setup_browser(qtbot):
    """Set up WebBrowser."""
    widget = WebBrowser()
    qtbot.addWidget(widget)
    return widget