summaryrefslogtreecommitdiffstats
path: root/Mac/IDE scripts/Widget demos/PaneDemo2.py
blob: 7ed06de900101d386434b1755a2c4a2f5084e765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import W

w = W.Window((600, 400), "Ha!", minsize = (240, 200))

w.panes = W.HorizontalPanes((8, 8, -8, -20), (0.6, 0.4))

w.panes.panes = W.VerticalPanes(None, (0.3, 0.4, 0.3))
w.panes.panes.blah1 = W.EditText(None, "eehhh...")
w.panes.panes.blah2 = W.EditText(None, "nou...")
w.panes.panes.blah3 = W.List(None, ["eehhh...", 'abc', 'def'])

w.panes.group = W.Group(None)
w.panes.group.mytext = W.EditText((0, 24, 0, 0), "eehhh...")
w.panes.group.button1 = W.Button((0, 0, 80, 16), "A Button")

w.open()