mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
typing pride
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from textual.app import App
|
from textual.app import App, ComposeResult
|
||||||
from textual.widgets import Static
|
from textual.widgets import Static
|
||||||
|
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ class PrideApp(App):
|
|||||||
|
|
||||||
COLORS = ["red", "orange", "yellow", "green", "blue", "purple"]
|
COLORS = ["red", "orange", "yellow", "green", "blue", "purple"]
|
||||||
|
|
||||||
def compose(self):
|
def compose(self) -> ComposeResult:
|
||||||
for color in self.COLORS:
|
for color in self.COLORS:
|
||||||
stripe = Static()
|
stripe = Static()
|
||||||
stripe.styles.height = "1fr"
|
stripe.styles.height = "1fr"
|
||||||
|
|||||||
Reference in New Issue
Block a user