mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			465 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			465 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
#! /usr/local/bin/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)
 |