WangWeimin
WangWeimin
Just wrap your script code with a function, and use the following code to start your script: ``` while True: app() act = actions(buttons=["Restar", "Exit"]) if act=="Exit": break ```
It seems the theta data is wrong in figurewidget:  But the figure attributes of FigureWidget is correct: 
@SavSanta HTML5 `audio` does support mp3, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio @mlakshmi22 There is a `put_audio()` added to pywebio battery, see https://pywebio.readthedocs.io/en/latest/battery.html#pywebio_battery.put_audio
`pin.put_file_upload()` is supported in pywebio dev version, and will be released to stable version soon. dev doc: https://pywebio.readthedocs.io/en/dev/pin.html#pywebio.pin.put_file_upload
最近的几个版本的pywebio有几个相关的修复,可以尝试升级一下pywebio版本
这应该是浏览器兼容性问题。不过,html 的file input的accept参数支持传入多种类型 ([文档](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept)),对应到pywebio中是传入列表,所以可以尝试一下使用 ` file_upload("上传一个录音文件", accept=["audio/*", ". m4a"])` 是否能解决问题
你可以通过 `pywebio.session.run_js()` 来手动设置这两个库的请求地址,设置的语法参见 https://github.com/pywebio/PyWebIO/blob/f534f4bee085d7aa1e9dedd1cb210498723cb7d0/pywebio/platform/tpl/index.html#L79-L85
I failed to set clipboard via `clipboard.writeText()` in pywebio with chrome. However, I use a more compatible code to set clipboard in the pywebio's demo in document ([like this](https://pywebio-demos.pywebio.online/doc_demo?app=demo-text-input)). ```PYTHON...