简体   繁体   中英

How can i insert a hyperlink in an image using python?

我不想将图像视为超链接,而是想在图像中添加超链接。

Why don't you try this?

import Tkinter as tk

image_link = tk.Label(text_widget, image=my_image, cursor="left_ptr")
image_link.bind("<1>", do_something)
text_widget.window_create("insert", window=image_link)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM