I want to make an application which looks something like this image:
I need it to open a website on click of the button.
I used a Tkinter code which looks like this:
def openweb():
webbrowser.open(url,new=new)
Btn = Button(root, text = "Check URL",command=openweb)
But it is opening in the default browser.
Is there some way to handle it?
Based on the little code you posted I guess you're using Tkinter – it doesn't come with an embeddable browser frame component, unfortunately.
You'll have to switch to something more complex like Qt (PyQt5 / PySide2) if you need an app that embeds a web browser view.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.