v0.87.0

Textualize/textualv0.87.0Nov 24, 2024by willmcgugan

AI Summary

This release introduces advanced CSS positioning capabilities and a new interactive demo game, alongside various utility methods for widgets.

Key Highlights

  • Added support for position: absolute in CSS
  • Added new demo game (textual.demo.game)
  • Added Select.selection property
  • Added Widget.set_scroll method

New Features

  • CSS absolute positioning
  • Demo game
  • Styles.has_any_rules
  • Widget.set_scroll
  • Select.selection

Full Release Notes

This version adds support for [`position:absolute`](https://textual.textualize.io/styles/position/) in the CSS.

Also in this release is a game added to the demo.
Play the game by running the following command:

```
python -m textual.demo.game
```

<img width="1519" alt="Screenshot 2024-11-24 at 12 18 10" src="https://github.com/user-attachments/assets/60b179a3-191c-4503-8660-084a52ec8956">


## [0.87.0] - 2024-11-24

### Added

- Added Styles.has_any_rules https://github.com/Textualize/textual/pull/5264
- Added `position` CSS rule. https://github.com/Textualize/textual/pull/5278
- Added `Widget.set_scroll` https://github.com/Textualize/textual/pull/5278
- Added `Select.selection` https://github.com/Textualize/textual/pull/5278

### Fixed 

- Fixed offset applied to docked widgets https://github.com/Textualize/textual/pull/5264
- Fixed loading widgets responding to input https://github.com/Textualize/textual/pull/5267