File tree Expand file tree Collapse file tree 5 files changed +22
-6
lines changed Expand file tree Collapse file tree 5 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -34,4 +34,7 @@ def create():
3434 ltk .Text ("For clarity, we marked the custom widget orange." )
3535 .css ("margin-top" , 20 ),
3636 ltk .H4 ("Tip: drag the card." ),
37+ ltk .Link (href = "https://github.com/laffra/ltk/blob/main/examples/custom.py" )
38+ .attr ("target" , "_blank" )
39+ .text ("source" )
3740 ).attr ("name" , "Custom" )
Original file line number Diff line number Diff line change 55
66def create ():
77 return (
8- ltk .VBox (ltk .Text ("Hello World 🎉" ))
9- .css ("padding" , 100 )
10- .css ("background-color" , "orange" )
11- .css ("font-size" , 42 )
12- .attr ("name" , "Hello World" )
8+ ltk .VBox (
9+ ltk .Text ("Hello World 🎉" )
10+ .css ("padding" , 100 )
11+ .css ("background-color" , "orange" )
12+ .css ("font-size" , 42 ),
13+ ltk .Link (href = "https://github.com/laffra/ltk/blob/main/examples/helloworld.py" )
14+ .attr ("target" , "_blank" )
15+ .text ("source" )
16+ ).attr ("name" , "Hello World" )
1317 )
Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ def create():
4545 ],
4646 ).appendTo (container )
4747
48- container .append (ltk .H4 ("Tip: resize the country column using the orange handle." ))
48+ container .append (
49+ ltk .H4 ("Tip: resize the country column using the orange handle." ),
50+ ltk .Link (href = "https://github.com/laffra/ltk/blob/main/examples/table.py" )
51+ .attr ("target" , "_blank" )
52+ .text ("source" )
53+ )
4954
5055 return container
5156
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ def create():
5757 for row in range (3 )
5858 ),
5959 ltk .H4 ("Tip: Click inside the squares." ),
60+ ltk .Link (href = "https://github.com/laffra/ltk/blob/main/examples/tictactoe.py" )
61+ .attr ("target" , "_blank" )
62+ .text ("source" )
6063 ).attr ("name" , "Tic Tac Toe" )
6164
6265ltk .inject (__file__ , "tictactoe.css" )
Original file line number Diff line number Diff line change 4141from ltk .widgets import Button
4242from ltk .widgets import Tabs
4343from ltk .widgets import File
44+ from ltk .widgets import Link
4445from ltk .widgets import Table
4546from ltk .widgets import TableRow
4647from ltk .widgets import TableHeader
You can’t perform that action at this time.
0 commit comments