Textualize / textual

The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
https://textual.textualize.io/
MIT License
25.6k stars 788 forks source link

tree behavior changes in Textual 0.80 #5050

Closed godlygeek closed 1 month ago

godlygeek commented 1 month ago

With Textual 0.79.1, running python docs/examples/widgets/tree.py looks like this:

image

With Textual 0.80.1, running python docs/examples/widgets/tree.py looks like this:

image

Note that the arrows representing whether non-leaf nodes are expanded or collapsed are reversed, and the orange lines indicating the current node and all of its descendants are no longer there in the latest version. Neither of these changes are mentioned in the changelog.

# Textual Diagnostics

## Versions

| Name    | Value  |
|---------|--------|
| Textual | 0.80.1 |
| Rich    | 13.7.1 |

## Python

| Name           | Value                                                            |
|----------------|------------------------------------------------------------------|
| Version        | 3.11.10                                                          |
| Implementation | CPython                                                          |
| Compiler       | GCC 12.1.1 20220628 (Red Hat 12.1.1-3)                           |
| Executable     | /home/mwoznisk/.pyenv/versions/3.11/envs/memray-3.11/bin/python3 |

## Operating System

| Name    | Value                               |
|---------|-------------------------------------|
| System  | Linux                               |
| Release | 5.15.153.1-microsoft-standard-WSL2  |
| Version | #1 SMP Fri Mar 29 23:14:13 UTC 2024 |

## Terminal

| Name                 | Value          |
|----------------------|----------------|
| Terminal Application | *Unknown*      |
| TERM                 | putty-256color |
| COLORTERM            | truecolor      |
| FORCE_COLOR          | *Not set*      |
| NO_COLOR             | *Not set*      |

## Rich Console options

| Name           | Value                |
|----------------|----------------------|
| size           | width=212, height=98 |
| legacy_windows | False                |
| min_width      | 1                    |
| max_width      | 212                  |
| is_terminal    | True                 |
| encoding       | utf-8                |
| max_height     | 98                   |
| justify        | None                 |
| overflow       | None                 |
| no_wrap        | False                |
| highlight      | None                 |
| markup         | None                 |
| height         | None                 |
github-actions[bot] commented 1 month ago

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

godlygeek commented 1 month ago

For context, I noticed this while updating the snapshots for Memray. This shows up as an unexpected difference for many of our memray tree tests:

image

github-actions[bot] commented 1 month ago

Don't forget to star the repository!

Follow @textualizeio for Textual updates.