aboutsummaryrefslogtreecommitdiff
path: root/lib/TestCSplit.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/TestCSplit.py')
-rw-r--r--lib/TestCSplit.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/TestCSplit.py b/lib/TestCSplit.py
index b638f81..5da55c4 100644
--- a/lib/TestCSplit.py
+++ b/lib/TestCSplit.py
@@ -6,21 +6,21 @@ from WindowParent import WindowParent
from Buttons import PushButton
def main(n):
- from CSplit import CSplit
-
- 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()
-
- while 1:
- the_event = stdwin.getevent()
- if the_event[0] = WE_CLOSE: break
- the_window.dispatch(the_event)
- the_window.destroy()
+ from CSplit import CSplit
+
+ 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()
+
+ while 1:
+ the_event = stdwin.getevent()
+ if the_event[0] = WE_CLOSE: break
+ the_window.dispatch(the_event)
+ the_window.destroy()
main(12)