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()
def main(n): from CSplit import CSplit window = WindowParent().create('TestSched', (0, 0)) csplit = CSplit().create(window) for i in range(n): child = PushButton().define(csplit) child.my_number = i child.my_id = None child.settext(`(i+n-1)%n+1`) child.hook = my_hook window.realize() WindowSched.run()
def main(n): from FormSplit import FormSplit # stdwin.setdefscrollbars(1, 1) # the_window = WindowParent().create('TestFormSplit', (0, 0)) the_form = FormSplit().create(the_window) # for i in range(n): if i % 3 == 0: the_form.placenext(i*40, 0) the_child = PushButton().define(the_form) the_child.settext('XXX-' + `i` + '-YYY') # the_window.realize() # MainLoop()
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()