mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
@@ -19,7 +19,7 @@ class FizzBuzz(Static):
|
||||
|
||||
|
||||
class FizzBuzzApp(App):
|
||||
CSS_PATH = "fizzbuzz01.css"
|
||||
CSS_PATH = "fizzbuzz01.tcss"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield FizzBuzz()
|
||||
|
||||
@@ -6,5 +6,5 @@ FizzBuzz {
|
||||
width: auto;
|
||||
height: auto;
|
||||
background: $primary;
|
||||
color: $text;
|
||||
color: $text;
|
||||
}
|
||||
@@ -24,7 +24,7 @@ class FizzBuzz(Static):
|
||||
|
||||
|
||||
class FizzBuzzApp(App):
|
||||
CSS_PATH = "fizzbuzz02.css"
|
||||
CSS_PATH = "fizzbuzz02.tcss"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield FizzBuzz()
|
||||
|
||||
@@ -5,6 +5,6 @@ Screen {
|
||||
FizzBuzz {
|
||||
width: auto;
|
||||
height: auto;
|
||||
background: $primary;
|
||||
background: $primary;
|
||||
color: $text;
|
||||
}
|
||||
@@ -10,7 +10,7 @@ class Hello(Widget):
|
||||
|
||||
|
||||
class CustomApp(App):
|
||||
CSS_PATH = "hello02.css"
|
||||
CSS_PATH = "hello02.tcss"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Hello()
|
||||
|
||||
@@ -3,7 +3,6 @@ from itertools import cycle
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.widgets import Static
|
||||
|
||||
|
||||
hellos = cycle(
|
||||
[
|
||||
"Hola",
|
||||
@@ -37,7 +36,7 @@ class Hello(Static):
|
||||
|
||||
|
||||
class CustomApp(App):
|
||||
CSS_PATH = "hello03.css"
|
||||
CSS_PATH = "hello03.tcss"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Hello()
|
||||
|
||||
@@ -3,7 +3,6 @@ from itertools import cycle
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.widgets import Static
|
||||
|
||||
|
||||
hellos = cycle(
|
||||
[
|
||||
"Hola",
|
||||
@@ -48,7 +47,7 @@ class Hello(Static):
|
||||
|
||||
|
||||
class CustomApp(App):
|
||||
CSS_PATH = "hello04.css"
|
||||
CSS_PATH = "hello04.tcss"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Hello()
|
||||
|
||||
@@ -3,7 +3,6 @@ from itertools import cycle
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.widgets import Static
|
||||
|
||||
|
||||
hellos = cycle(
|
||||
[
|
||||
"Hola",
|
||||
@@ -34,7 +33,7 @@ class Hello(Static):
|
||||
|
||||
|
||||
class CustomApp(App):
|
||||
CSS_PATH = "hello05.css"
|
||||
CSS_PATH = "hello05.tcss"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Hello()
|
||||
|
||||
@@ -36,7 +36,7 @@ class Hello(Static):
|
||||
|
||||
|
||||
class CustomApp(App):
|
||||
CSS_PATH = "hello05.css"
|
||||
CSS_PATH = "hello05.tcss"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Hello()
|
||||
|
||||
Reference in New Issue
Block a user