diff options
Diffstat (limited to 'Demo/stdwin/TestCSplit.py')
-rwxr-xr-x | Demo/stdwin/TestCSplit.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Demo/stdwin/TestCSplit.py b/Demo/stdwin/TestCSplit.py new file mode 100755 index 0000000..a34ff05 --- /dev/null +++ b/Demo/stdwin/TestCSplit.py @@ -0,0 +1,25 @@ +#! /usr/local/python + +# TestCSplit + +import stdwin +from WindowParent import WindowParent, MainLoop +from Buttons import PushButton + +def main(n): + from CSplit import CSplit + # + stdwin.setdefscrollbars(0, 0) + # + the_window = WindowParent().create('TestCSplit', (0, 0)) + the_csplit = CSplit().create(the_window) + # + for i in range(n): + the_child = PushButton().define(the_csplit) + the_child.settext(`(i+n-1)%n+1`) + # + the_window.realize() + # + MainLoop() + +main(12) |