@requires_application()
def test_run():
 for _ in range(2):
  with Canvas(size=(100, 100), show=True, title='run') as c:
   @c.events.draw.connect
   def draw(event):
    print event
    c.app.quit()
   c.update()
   c.app.run()
  c.app.quit()

@ requires_application ( ) def test_run ( ) : for _ in range ( 2 ) : with Canvas ( size = ( 100 , 100 ) , show = True , title = 'run' ) as c : @ c . events . draw . connect def draw ( event ) : print event c . app . quit ( ) c . update ( ) c . app . run ( ) c . app . quit ( )
test running subprocesses .