Search code examples
browseroperating-systempyqt4

pyqt4: Open website in standard browser on button click


I would like to open website in standard browser of operating system when user clicks a button in my pyqt4 application. How can I do this?


Solution

  • you can use the python webbrowser module

    import webbrowser
    webbrowser.open('http://stackoverflow.com')