Skip to content

Commit

Permalink
Adjust editor size
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Jun 24, 2024
1 parent bd6703c commit ba4b3b2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions examples/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@

source = """
ltk.VBox(
# edit this text and see what happens
ltk.HBox(
ltk.Span("Edit the text").css("margin", 12),
ltk.Span("In the editor below"),
ltk.Span("Edit the text in"),
ltk.Span("the editor below")
.css("margin", 12),
)
.css("height", 40)
.css("background", "lightblue")
.css("border", "1px solid gray"),
ltk.HBox(
ltk.Span("This UI will update live").css("margin", 12),
ltk.Span("With every character you type!").css("margin-top", 24),
ltk.Span("This UI will update live")
.css("margin", 12),
ltk.Span("With every character you type!")
.css("margin-top", 24),
)
.css("height", 80)
.css("background", "lightyellow")
.css("border", "1px solid gray"),
.css("border", "2px solid red"),
)
""".strip()

Expand Down

0 comments on commit ba4b3b2

Please sign in to comment.