def open_url(url): pass #Open the url in a browserfor i,url in enumerate(url_list): label=tk.Label(frame,text=url) label.grid(row=i) label.bind("<Button-1>",lambda e,url=url:open_url(url))
欢迎分享,转载请注明来源:内存溢出
def open_url(url): pass #Open the url in a browserfor i,url in enumerate(url_list): label=tk.Label(frame,text=url) label.grid(row=i) label.bind("<Button-1>",lambda e,url=url:open_url(url))
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)