Replies: 1 comment 3 replies
-
如果每次输出pin组件之前,都clear了旧的同名的pin组件,那是不会出现 Pin widget 已失效的警告的。 底层原理是,pywebio在每次输出pin组件的时候,都会先在页面上检查有没有同名的pin组件,如果有,就先把旧的同名的pin组件设置成失效,然后再输出新的pin组件。 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在使用pin widget时,出现错误:pywebio 该 Pin widget 已失效(由于输出了新的同名 pin widget), 我是通过下拉框回调显示不同的pin widget, 其中有一部分是格式内容一致的,共用了一个名字,因为有大量的组件是这样,又不想重命名,这种情况,如何处理,实际上我每次回调都clear了相应的scope
Beta Was this translation helpful? Give feedback.
All reactions