use*_*493 7 python url tkinter hyperlink
我有一个tkinter脚本.我想知道无论如何都是这样,当你点击按钮它会带你到一个网站
from tkinter import *
app = Tk()
app.geometry("250x400")
app.title("Links")
def Link():
?
button1 = Button(app, text = "To a web site.", command = Link)
button1.pack()
app.mainloop()
Run Code Online (Sandbox Code Playgroud)
Pet*_*rin 15
有一个模块.
import webbrowser
webbrowser.open("http://xkcd.com/353/")
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2156 次 |
| 最近记录: |