[Tutor] HTML links from Tkinter

jfouhy@paradise.net.nz jfouhy at paradise.net.nz
Fri Jul 15 00:55:37 CEST 2005

Quoting Alberto Troiano <albertito_g at hotmail.com>:

> Is there any way that I can link a button to go to certain web page?
> and how can I do that?

If you want to open a web page in the user's default browser, check out the
webbrowser module in the standard library.

If you want to go to a website and suck down some data, you'll probably need
urllib (and it will be a bit more work).

> Another thing, I'll make a query by name and I want to show every
> results matching the query in a table using Tkinter.

There's no table widget in standard Tkinter.  Search in the Python Cookbook (on
ActiveState) for a MultiListbox; it might do what you need.


More information about the Tutor mailing list