Skip to content

Commit ba4b3b2

Browse files
committed
Adjust editor size
1 parent bd6703c commit ba4b3b2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

examples/editor.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@
44

55
source = """
66
ltk.VBox(
7-
# edit this text and see what happens
8-
97
ltk.HBox(
10-
ltk.Span("Edit the text").css("margin", 12),
11-
ltk.Span("In the editor below"),
8+
ltk.Span("Edit the text in"),
9+
ltk.Span("the editor below")
10+
.css("margin", 12),
1211
)
1312
.css("height", 40)
1413
.css("background", "lightblue")
1514
.css("border", "1px solid gray"),
1615
1716
ltk.HBox(
18-
ltk.Span("This UI will update live").css("margin", 12),
19-
ltk.Span("With every character you type!").css("margin-top", 24),
17+
ltk.Span("This UI will update live")
18+
.css("margin", 12),
19+
ltk.Span("With every character you type!")
20+
.css("margin-top", 24),
2021
)
2122
.css("height", 80)
2223
.css("background", "lightyellow")
23-
.css("border", "1px solid gray"),
24+
.css("border", "2px solid red"),
2425
)
2526
""".strip()
2627

0 commit comments

Comments
 (0)