D
D
Danil Samorokov2018-02-05 20:43:08
Python
Danil Samorokov, 2018-02-05 20:43:08

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

3 answer(s)
D
Dimonchik, 2018-02-05
@dimonchik2013

better climbing
https://www.youtube.com/watch?v=D5nsMh2zmXk

V
Vladimir, 2018-02-06
@vintello

python has a wonderful liba webbrowser
I think this is what you were looking for

M
Maxim Benets, 2022-03-21
@teaCode

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 question

Ask a Question

731 491 924 answers to any question