equal
deleted
inserted
replaced
1 #!/usr/bin/env python3 |
|
2 |
|
3 from tuikit.layouts.grid import GridLayout |
|
4 from tuikit.widgets.label import Label |
|
5 |
|
6 l1 = Label('Hello') |
|
7 l1.sizemin.update(10, 1) |
|
8 |
|
9 grid = GridLayout() |
|
10 grid.add(l1, 1, 1) |
|
11 grid.update(10, 10) |
|
12 |
|
13 print(grid._grid_size) |
|
14 print(grid._grid) |
|
15 |
|
16 for row in range(grid.row_count): |
|
17 for col in range(grid.column_count): |
|
18 w = grid.get_widget_at(row, col) |
|
19 name = w.name if w else '--' |
|
20 print(name.center(16), end='') |
|
21 print() |
|
22 |
|
23 print(l1.pos) |
|
24 print(l1.size) |
|