Rio 0.7
Thanks to all of the feedback and contributions from the community, we're excited to announce the release of Rio 0.7! This release includes one of the largest change to layouting system in months, among many other improvements.
Breaking Changes
No changes are needed for your old code.
No more funky yellow stripes 🎉
Rows and columns have got to be some of the most important components in Rio.
Just about every app uses them, and just about every app has had to deal with
the funky yellow stripes that appear when too much space is available. This
undefined space was meant as a warning system, but after talking to many of
you we've decided that it does more harm than good. Starting with Rio 0.7,
rows and columns will now pass on all available space to their children.
This places them in line with the rest of the layouting system, and hopefully
alleviates some of the confusion around them.
New Example: Multipage Website 📄📄📄
Navigation is a common pattern in apps, and Rio now has a new example that
illustrates how to implement it. The new "Multipage Website" example comes with
three sample pages and a navbar to switch between them. The navbar automatically
highlights the current page and allows you to switch between them.
You can set up a project with this template in a single command:
rio new --template multipage-website
Thank you to @JJFlorian for contributing this example!
Other Improvements ✨
- Added a new CodeBlock component that can be used to display code snippets.
It's similar to how code blocks in markdown work, and supports syntax
highlighting. - UserSettings have been migrated to our own dataclass implementation. This
allows you to use mutable defaults. - Many, many bugfixes, improvements and documentation updates.
New Contributors 🤝
- @JJFlorian made the first contribution in #15
- @shubham-kshetre made the first contribution in #18 and #23
Install 🛠️
Get it from pypi: pip install --upgrade rio-ui
🌊