Skip to content

Mounting excitement

Choose a tag to compare

@willmcgugan willmcgugan released this 08 Nov 17:54
· 9582 commits to main since this release
00bcd82

Read the blog post: https://textual.textualize.io/blog/2022/11/08/version-040/#version-040

[0.4.0] - 2022-11-08

Changed

  • Dropped support for mounting "named" and "anonymous" widgets via
    App.mount and Widget.mount. Both methods now simply take one or more
    widgets as positional arguments.
  • DOMNode.query_one now raises a TooManyMatches exception if there is
    more than one matching node.
    #1096
  • App.mount and Widget.mount have new before and after parameters #778

Added

  • Added init param to reactive.watch
  • CSS_PATH can now be a list of CSS files #1079
  • Added DOMQuery.only_one #1096
  • Writes to stdout are now done in a thread, for smoother animation. #1104