Mercurial > cpython-lru_cache-weakref
view Demo/stdwin/TestCSplit.py @ 5817:48b94de85bf3 legacy-trunk
Extensive changes by AMK.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:29:42 +0000 |
| parents | 73758db2f464 |
| children |
line wrap: on
line source
#! /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)
