What's new in PyWebIO 1.5 ========================== 2021/11/20 ----------- Highlights ^^^^^^^^^^^ * theme support via :func:`pywebio.config()`, :demo_host:`demo ` * deprecate :func:`pywebio.output.output()`, use `pywebio.output.use_scope()` instead (``output()`` still work) Detailed changes ^^^^^^^^^^^^^^^^^ * enable `lstrip` by default in `put_markdown() `, and the behavior of `lstrip` is more clever than previous version. Deprecate `strip_indent` since `lstrip` is sufficient. * button disabled state support in `pywebio.output.put_buttons()` and `pywebio.output.put_button()`, and button value can be any type * buttons in `pywebio.input.actions()` support color setting * russian language support for frontend labels and messages. Thanks to `@Priler `_. * improve default index page of `pywebio.platform.path_deploy()`: improve pywebio app detection and show app title. * compatible with latest aiohttp(v3.8) * enable `websocket_ping_interval` by default in tornado server to avoid idle connections being close in some cloud platform (like heroku) * exception traceback will be show in page when enable debug * `slider ` input add indicator to show its current value Bug fix ^^^^^^^^^^^^^^^^^ * deep copy `options` and `buttons` parameters to avoid potential error - `81d57ba4 `_, `cb5ac8d5 `_ - `e262ea43 `_ * fix page width exceeding screen width (mostly on mobile devices) - `536d09e3 `_ * fix `put_buttons()` issue when buttons have same value - `cb5ac8d5 `_ * fix layout issue when use `put_markdown()` - `364059ae `_ * fix style issue in `put_tabs()` widget - `f056f1ac `_ * fix sibling import issue in `path_deploy()` - `35209a7e `_ * fix "Address already in use" error when enable remote access in some cases - `8dd9877d `_ v1.5.1 (2021/12/21) ---------------------- * fix setitem error of `pin.pin` object - `3f5cf1e5 `_ * fix thread-based session tot closed properly - `22fbbf86..3bc7d36b> `_ * fix OverflowError on 32-bit Windows - `4ac7f0e5 `_ * fix a sample error from cookbook - `99593db4 `_ * fix spawn 2 remote access processes when enable debug in flask backed - `073f8ace `_ v1.5.2 (2021/12/30) ---------------------- * fix `#243 `_: thread keep alive after session closed * fix `#247 `_: can't use coroutine callback in `put_button()`