Answer the question
In order to leave comments, you need to log in
How to open browser in tkinter?
hello, I am developing an application in python and tkinter. The essence of the question is that when you click on the button, the browser opens. Help.
Looked all over and found nothing.
Answer the question
In order to leave comments, you need to log in
python has a wonderful liba webbrowser
I think this is what you were looking for
from tkinter import *
import os
root = Tk()
def openGoogle():
os.system("start https://google.com") #Тут вставьте ссылку которая вам нужна
btn = Button(text = "Открыть Google" command = openGoogle).pack()
root.mainloop()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question