30 |
|
|
31 |
## gui stuff |
## gui stuff |
32 |
cont = gui.container () |
cont = gui.container () |
33 |
cont.setSize (150, 150) |
cont.set_size (150, 150) |
34 |
cont.setLocation (20, 30) |
cont.set_location (20, 30) |
35 |
|
|
36 |
a = dict () |
a = dict () |
37 |
for i in range (0,7): |
for i in range (0,7): |
38 |
a[i] = gui.base () |
a[i] = gui.base () |
39 |
a[i].setSize (40,20) |
a[i].set_size (40,20) |
40 |
a[i].setLocation (30, 10) |
a[i].set_location (30, 10) |
41 |
cont.addChild (a[i]) |
cont.add_child (a[i]) |
42 |
|
|
43 |
# set the layout |
# set the layout |
44 |
cont.setExtendPolicy (2) |
cont.set_extend_policy (2) |
45 |
z = gui.listlayout () |
z = gui.listlayout () |
46 |
cont.setLayout (z) |
cont.set_layout (z) |
47 |
|
|
48 |
|
|
49 |
## Run this loop until letsexit is set to 1 by the |
## Run this loop until letsexit is set to 1 by the |