Fix the HTML tarball target to generate the HTML if needed instead of
[python/dscho.git] / Demo / stdwin / TestCSplit.py
blob720b8c3906bddf0ca8c4037c476a9451e776663f
1 #! /usr/bin/env python
3 # TestCSplit
5 import stdwin
6 from WindowParent import WindowParent, MainLoop
7 from Buttons import PushButton
9 def main(n):
10 from CSplit import CSplit
12 stdwin.setdefscrollbars(0, 0)
14 the_window = WindowParent().create('TestCSplit', (0, 0))
15 the_csplit = CSplit().create(the_window)
17 for i in range(n):
18 the_child = PushButton().define(the_csplit)
19 the_child.settext(`(i+n-1)%n+1`)
21 the_window.realize()
23 MainLoop()
25 main(12)