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():
34
34
ltk .Text ("For clarity, we marked the custom widget orange." )
35
35
.css ("margin-top" , 20 ),
36
36
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" )
37
40
).attr ("name" , "Custom" )
Original file line number Diff line number Diff line change 5
5
6
6
def create ():
7
7
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" )
13
17
)
Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ def create():
45
45
],
46
46
).appendTo (container )
47
47
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
+ )
49
54
50
55
return container
51
56
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ def create():
57
57
for row in range (3 )
58
58
),
59
59
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" )
60
63
).attr ("name" , "Tic Tac Toe" )
61
64
62
65
ltk .inject (__file__ , "tictactoe.css" )
Original file line number Diff line number Diff line change 41
41
from ltk .widgets import Button
42
42
from ltk .widgets import Tabs
43
43
from ltk .widgets import File
44
+ from ltk .widgets import Link
44
45
from ltk .widgets import Table
45
46
from ltk .widgets import TableRow
46
47
from ltk .widgets import TableHeader
You can’t perform that action at this time.
0 commit comments