Staging
v0.8.1
Revision fa38b3ee749388386914a6584b4c7d97aa474abe authored by cvs2svn on 22 December 1998, 21:43:35 UTC, committed by cvs2svn on 22 December 1998, 21:43:35 UTC
1 parent 45d2ae5
Raw File
TestCSplit.py
#! /usr/bin/env 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)
back to top