I'm using windows 7, hoping to use Tkinter to open an internet window when a button is clicked that goes to a specific page in google chrome. Is this possible?

class App:
    def __init__(self, master):

        frame = Frame(master)

        self.button = Button(frame, text="Rejuvenation", command=self.info)
    def info(self):
        pass #Will go to relevant webpage

Recommended Answers

Check webbrowser module.

Jump to Post

All 2 Replies

Check webbrowser module.

like pyTony said you want to use the webbrowser module. where pass is in your could it would look something like this

#after you have imported webbrower
webbrowser.open('address to site goes here')
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.