mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
changed to CSS_PATH
This commit is contained in:
@@ -22,6 +22,6 @@ class BorderApp(App):
|
||||
self.widget.styles.border = ("heavy", "yellow")
|
||||
|
||||
|
||||
app = BorderApp()
|
||||
if __name__ == "__main__":
|
||||
app = BorderApp()
|
||||
app.run()
|
||||
|
||||
@@ -33,6 +33,6 @@ class BoxSizing(App):
|
||||
self.widget2.styles.box_sizing = "content-box"
|
||||
|
||||
|
||||
app = BoxSizing()
|
||||
if __name__ == "__main__":
|
||||
app = BoxSizing()
|
||||
app.run()
|
||||
|
||||
@@ -12,6 +12,6 @@ class WidgetApp(App):
|
||||
self.widget.styles.border = ("heavy", "white")
|
||||
|
||||
|
||||
app = WidgetApp()
|
||||
if __name__ == "__main__":
|
||||
app = WidgetApp()
|
||||
app.run()
|
||||
|
||||
@@ -19,6 +19,6 @@ class ColorApp(App):
|
||||
self.widget3.styles.background = Color(191, 78, 96)
|
||||
|
||||
|
||||
app = ColorApp()
|
||||
if __name__ == "__main__":
|
||||
app = ColorApp()
|
||||
app.run()
|
||||
|
||||
@@ -15,6 +15,6 @@ class ColorApp(App):
|
||||
widget.styles.background = Color(191, 78, 96, a=alpha)
|
||||
|
||||
|
||||
app = ColorApp()
|
||||
if __name__ == "__main__":
|
||||
app = ColorApp()
|
||||
app.run()
|
||||
|
||||
@@ -22,6 +22,6 @@ class DimensionsApp(App):
|
||||
self.widget.styles.height = 10
|
||||
|
||||
|
||||
app = DimensionsApp()
|
||||
if __name__ == "__main__":
|
||||
app = DimensionsApp()
|
||||
app.run()
|
||||
|
||||
@@ -22,6 +22,6 @@ class DimensionsApp(App):
|
||||
self.widget.styles.height = "auto"
|
||||
|
||||
|
||||
app = DimensionsApp()
|
||||
if __name__ == "__main__":
|
||||
app = DimensionsApp()
|
||||
app.run()
|
||||
|
||||
@@ -22,6 +22,6 @@ class DimensionsApp(App):
|
||||
self.widget.styles.height = "80%"
|
||||
|
||||
|
||||
app = DimensionsApp()
|
||||
if __name__ == "__main__":
|
||||
app = DimensionsApp()
|
||||
app.run()
|
||||
|
||||
@@ -25,6 +25,6 @@ class DimensionsApp(App):
|
||||
self.widget2.styles.height = "1fr"
|
||||
|
||||
|
||||
app = DimensionsApp()
|
||||
if __name__ == "__main__":
|
||||
app = DimensionsApp()
|
||||
app.run()
|
||||
|
||||
@@ -27,6 +27,6 @@ class MarginApp(App):
|
||||
self.widget2.styles.margin = 2
|
||||
|
||||
|
||||
app = MarginApp()
|
||||
if __name__ == "__main__":
|
||||
app = MarginApp()
|
||||
app.run()
|
||||
|
||||
@@ -22,6 +22,6 @@ class OutlineApp(App):
|
||||
self.widget.styles.outline = ("heavy", "yellow")
|
||||
|
||||
|
||||
app = OutlineApp()
|
||||
if __name__ == "__main__":
|
||||
app = OutlineApp()
|
||||
app.run()
|
||||
|
||||
@@ -22,6 +22,6 @@ class PaddingApp(App):
|
||||
self.widget.styles.padding = 2
|
||||
|
||||
|
||||
app = PaddingApp()
|
||||
if __name__ == "__main__":
|
||||
app = PaddingApp()
|
||||
app.run()
|
||||
|
||||
@@ -22,6 +22,6 @@ class PaddingApp(App):
|
||||
self.widget.styles.padding = (2, 4)
|
||||
|
||||
|
||||
app = PaddingApp()
|
||||
if __name__ == "__main__":
|
||||
app = PaddingApp()
|
||||
app.run()
|
||||
|
||||
@@ -7,6 +7,6 @@ class ScreenApp(App):
|
||||
self.screen.styles.border = ("heavy", "white")
|
||||
|
||||
|
||||
app = ScreenApp()
|
||||
if __name__ == "__main__":
|
||||
app = ScreenApp()
|
||||
app.run()
|
||||
|
||||
@@ -12,6 +12,6 @@ class WidgetApp(App):
|
||||
self.widget.styles.border = ("heavy", "white")
|
||||
|
||||
|
||||
app = WidgetApp()
|
||||
if __name__ == "__main__":
|
||||
app = WidgetApp()
|
||||
app.run()
|
||||
|
||||
Reference in New Issue
Block a user