Skip to content

Rio 0.9

Compare
Choose a tag to compare
@Sn3llius Sn3llius released this 15 Jun 18:45

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 to rio.Switch #51
  • Experimental Switcher component for animated transitions between different child components
  • FlowContainer now has a convenience spacing parameter which controls both row_spacing and column_spacing at the same time
  • App now takes a dict of meta_tags as input, which are converted to HTML<meta> tags

Improvements:

  • TextInputs now emit the on_change event in real time while the user is
    typing
  • HTML components now execute embedded <script> nodes
  • rio run no longer opens a browser, since many people found it annoying

Deprecations:

  • rio.Fill and rio.FillLike are slated for removal
  • The display_controls parameter of the CodeBlock component has been renamed
    to show_controls

Install 🛠️

Get it from pypi: pip install --upgrade rio-ui 🌊