Add --port option to textual console. (#2258)

* Add --port option to textual console.

* Changelog.

* Address review feedback.

* Mark unpredictable test as xfail.

This test gets an xfail mark until #2254 is open.

* Make DEVTOOLS_PORT a constant.

Related review: https://github.com/Textualize/textual/pull/2258\#discussion_r1165210395

* Factor logic into function.

Related review: https://github.com/Textualize/textual/pull/2258\#discussion_r1165298259

* Remove dead import.
This commit is contained in:
Rodrigo Girão Serrão
2023-04-13 11:57:35 +01:00
committed by GitHub
parent e32cdbb390
commit bb2c31ba35
9 changed files with 90 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ class MyApp(App[None]):
def compose(self) -> ComposeResult:
with VerticalScroll():
yield Label(("SPAM\n" * 25)[:-1])
yield Label(("SPAM\n" * 205)[:-1])
with VerticalScroll():
yield Label(("SPAM\n" * 53)[:-1])
with VerticalScroll(id="vertical"):