put_image,put_botton添加链接 #270
rhymecc
started this conversation in
Feature request
Replies: 1 comment 4 replies
-
from pywebio.output import *
from pywebio.session import run_js
put_link("github", "https://github.com/")
put_button("github", onclick=lambda: run_js("location.href='https://github.com/'"))
put_image('https://www.python.org/static/img/python-logo.png').onclick(lambda: run_js("location.href='https://www.python.org/'"))
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
put_image,put_button可以添加外部链接么
Beta Was this translation helpful? Give feedback.
All reactions