Skip to content

Commit

Permalink
Make hello world a bit bolder
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Nov 12, 2023
1 parent f48f2c1 commit efacb9f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/helloworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

import ltk

hello = ltk.Text("Hello World")

def create():
return hello.attr("name", "Hello World")
return (
ltk.VBox(ltk.Text("Hello World"))
.css("padding", 100)
.css("background-color", "orange")
.css("font-size", 42)
.attr("name", "Hello World")
)

0 comments on commit efacb9f

Please sign in to comment.