Patrick’s development blog

web browser controller module in Python

Posted in Python by Patrick on March 5, 2008

I’m currently making a school project in Python and came to the point where I wanted to open my webbrowser trough my application. To my surprise, I found a module named webbrowser which is just as easy to use as lifting your arm. It only requires two lines of code.

Open specified URL in standard browser

import webbrowser
webbrowser.open(“https://pbeblog.wordpress.com/”)

More information:
http://docs.python.org/lib/module-webbrowser.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: