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

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

w.panes = W.HorizontalPanes((8, 8, -30, -8), (0.3, 0.3, 0.4))
w.panes.blah1 = W.EditText(None, "eehhh...")
w.panes.blah2 = W.EditText((8, 8, -8, -8), "xxx nou...")
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.Frame(None)
w.panes.panes.blah2.t = W.EditText((0, 0, 0, 0), "nou...")
w.panes.panes.blah3 = W.List(None, ["eehhh...", 'abc', 'def'])

w.open()