Skip to content

Commit 8e4ba84

Browse files
authored
Merge branch 'main' into command-markup
2 parents abcd550 + 4e4b4ed commit 8e4ba84

File tree

7 files changed

+245
-8
lines changed

7 files changed

+245
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
- Fixed infinite loop in `Widget.anchor` https://github.com/Textualize/textual/pull/5290
1313
- Restores the ability to supply console markup to command list https://github.com/Textualize/textual/pull/5294
14+
- Fixed delayed App Resize event https://github.com/Textualize/textual/pull/5296
1415

1516
## [0.87.1] - 2024-11-24
1617

README.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,49 @@ Try the [textual demo](https://github.com/textualize/textual-demo) *without* ins
4040

4141
Textual adds interactivity to [Rich](https://github.com/Textualize/rich) with an API inspired by modern web development.
4242

43-
Textual apps can use **16.7 million** colors with mouse support and smooth flicker-free animation.
43+
A powerful layout engine, theming system, and re-usable [widgets](https://textual.textualize.io/widget_gallery/) makes it possible to build apps that rival the desktop and web experience. Here are just a few examples:
44+
45+
<table>
46+
47+
<tr>
48+
49+
<td>
50+
51+
![buttons](https://github.com/user-attachments/assets/2ac26387-aaa3-41ed-bc00-7d488600343c)
52+
53+
</td>
54+
55+
<td>
56+
57+
![tree](https://github.com/user-attachments/assets/61ccd6e9-97ea-4918-8eda-3ee0f0d3770e)
58+
59+
</td>
60+
61+
</tr>
62+
63+
<tr>
64+
65+
<td>
66+
67+
![datatables](https://github.com/user-attachments/assets/3e1f9f7a-f965-4901-a114-3c188bd17695)
68+
69+
</td>
70+
71+
<td>
72+
73+
![inputs](https://github.com/user-attachments/assets/b02aa203-7c37-42da-a1bb-2cb244b7d0d3)
74+
75+
</td>
76+
77+
</tr>
78+
79+
</table>
4480

45-
A powerful layout engine, theming system, and re-usable [widgets](https://textual.textualize.io/widget_gallery/) makes it possible to build apps that rival the desktop and web experience.
4681

4782
Great [documentation](https://textual.textualize.io/) and a [builtin testing framework](https://textual.textualize.io/guide/testing/) means that Textual apps can be maintained indefinitely.
4883

4984

85+
5086
## Installing
5187

5288
Install Textual via pip:
@@ -66,9 +102,11 @@ python -m textual
66102
```
67103

68104

105+
<!--
69106
70107
<img width="1348" alt="Screenshot of the Textual demo" src="https://github.com/user-attachments/assets/d30bc738-10ed-48c9-ac9d-8eac84b2da4a">
71108
109+
-->
72110

73111
## Documentation
74112

docs/widgets/markdown_viewer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ The following example displays Markdown from a string and a Table of Contents.
2929

3030
## Reactive Attributes
3131

32-
| Name | Type | Default | Description |
33-
| ------------------------ | ---- | ------- | ----------------------------------------------------------------- |
34-
| `show_table_of_contents` | bool | True | Wether a Table of Contents should be displayed with the Markdown. |
32+
| Name | Type | Default | Description |
33+
| ------------------------ | ---- | ------- | ------------------------------------------------------------------ |
34+
| `show_table_of_contents` | bool | True | Whether a Table of Contents should be displayed with the Markdown. |
3535

3636
## Messages
3737

src/textual/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3067,6 +3067,9 @@ async def invoke_ready_callback() -> None:
30673067
try:
30683068
try:
30693069
await self._dispatch_message(events.Compose())
3070+
await self._dispatch_message(
3071+
events.Resize.from_dimensions(self.size, None)
3072+
)
30703073
default_screen = self.screen
30713074
self.stylesheet.apply(self)
30723075
await self._dispatch_message(events.Mount())

src/textual/drivers/linux_driver.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ def _stop_again(*_) -> None:
216216
loop = asyncio.get_running_loop()
217217

218218
def send_size_event() -> None:
219-
if self._in_band_window_resize:
220-
return
221219
terminal_size = self._get_terminal_size()
222220
width, height = terminal_size
223221
textual_size = Size(width, height)
@@ -231,7 +229,8 @@ def send_size_event() -> None:
231229
self._writer_thread.start()
232230

233231
def on_terminal_resize(signum, stack) -> None:
234-
send_size_event()
232+
if not self._in_band_window_resize:
233+
send_size_event()
235234

236235
signal.signal(signal.SIGWINCH, on_terminal_resize)
237236

0 commit comments

Comments
 (0)