+ 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).
12 odpowiedzi
+ 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?
+ 3
<a href="given link"><button>click</button></a>
https://code.sololearn.com/c7GSnz92Vv9y/?ref=app
+ 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
+ 2
+ 2
Gaurav Dixit [Looper] 🇮🇳 he tagged it python so he has to utilize
import os
and
__import__("os").system("touch trick.png")
+ 2
➵Chloe[she/her]
Yes.
Thank you so much, I'll make the button with TKINTER
+ 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
+ 1
Use bootstrap cdn for classes
<a href="link" class="btn btn-primary">click</a>
+ 1
What library tkinter? flask?
I need more data about that u are using
+ 1
★«Caleb Guerra Ortega»★, you didn't import webbrowser