Rio 0.9
I'm not going to say too much because the changelog speaks for itself, but I have to bring special attention to one feature in particular:
The dev tools sidebar got a major overhaul in this release, in particular the "component tree" tab. If you ever have trouble with rio's layouting system, the dev tools can now tell you exactly why a component is layouted the way it is, explain how you can make it smaller or larger, and even let you change the size, margin, and alignment of the component on-the-fly. To try it out, open the "Tree" tab in the dev sidebar, select a component, and then click the "Layout" button at the bottom.
Breaking changes
Text.justify
now defaults to"left"
FlowContainer.justify
now defaults to"left"
rio.Theme.replace
method has been removed, since themes are now mutable
New features ✨
Checkbox
component as an alternative torio.Switch
#51- Experimental
Switcher
component for animated transitions between different child components FlowContainer
now has a convenience spacing parameter which controls bothrow_spacing
andcolumn_spacing
at the same timeApp
now takes a dict ofmeta_tags
as input, which are converted to HTML<meta>
tags
Improvements:
TextInputs
now emit theon_change
event in real time while the user is
typingHTML
components now execute embedded<script>
nodesrio run
no longer opens a browser, since many people found it annoying
Deprecations:
rio.Fill
andrio.FillLike
are slated for removal- The
display_controls
parameter of theCodeBlock
component has been renamed
toshow_controls
Install 🛠️
Get it from pypi: pip install --upgrade rio-ui
🌊