+ 7

¿Cómo puedo en un botón ir al lugar del vínculo dado?(Sé cómo hacer botones).

How can I in a button go to the place of the given link? (I know how to make buttons).

15th Oct 2021, 1:29 AM
CGO!
CGO! - avatar
12 Respuestas
+ 2
Use webbrowser. open() to open a website open(url, new=1) to open the url in the default web browser of the system. new=1 opens a new browser window, new=0 opens in the same browser window, and new=2 opens in a new tab. If I remember tkinter correctly, buttons are linked to a function, similar to onclick?
15th Oct 2021, 1:40 PM
Chloe
Chloe - avatar
+ 3
<a href="given link"><button>click</button></a> https://code.sololearn.com/c7GSnz92Vv9y/?ref=app
15th Oct 2021, 2:27 AM
BroFar
BroFar - avatar
+ 3
➵Chloe[she/her] BroFar Thank you so much Look at the code that you helped me make: https://code.sololearn.com/cr0wjthzZuRY/?ref=app
23rd Oct 2021, 3:56 PM
CGO!
CGO! - avatar
+ 2
Gaurav Dixit [Looper] 🇮🇳 he tagged it python so he has to utilize import os and __import__("os").system("touch trick.png")
15th Oct 2021, 2:50 AM
BroFar
BroFar - avatar
+ 2
➵Chloe[she/her] Yes. Thank you so much, I'll make the button with TKINTER
15th Oct 2021, 3:00 PM
CGO!
CGO! - avatar
+ 2
Guys, Why this code is a error in Pydroid3, not in SoloLearn because SL not have TKINTER? https://code.sololearn.com/cr0wjthzZuRY/?ref=app
23rd Oct 2021, 1:08 PM
CGO!
CGO! - avatar
+ 1
Use bootstrap cdn for classes <a href="link" class="btn btn-primary">click</a>
15th Oct 2021, 2:44 AM
Gaurav Dixit🇮🇳
Gaurav Dixit🇮🇳 - avatar
+ 1
What library tkinter? flask? I need more data about that u are using
15th Oct 2021, 4:06 AM
Nyashi
+ 1
BroFar I say with Python, in my computer I can't use HTML, nor in Pydroid.
15th Oct 2021, 12:06 PM
CGO!
CGO! - avatar
+ 1
Nyashi TKINTER Is a library Python for the button
15th Oct 2021, 12:06 PM
CGO!
CGO! - avatar
+ 1
★«Caleb Guerra Ortega»★, you didn't import webbrowser
23rd Oct 2021, 2:04 PM
Chloe
Chloe - avatar