#NEWLINE# def setup( ) : #NEWLINE# #INDENT# global world #NEWLINE# size ( 400 , 400 ) #NEWLINE# smooth ( ) #NEWLINE# Fisica . init ( this ) #NEWLINE# world = FWorld ( ) #NEWLINE# world . setGravity ( 0 , ( - 300 ) ) #NEWLINE# l = FPoly ( ) #NEWLINE# l . vertex ( ( ( width / 2 ) - ( hole / 2 ) ) , 0 ) #NEWLINE# l . vertex ( 0 , 0 ) #NEWLINE# l . vertex ( 0 , height ) #NEWLINE# l . vertex ( ( 0 + sideMargin ) , height ) #NEWLINE# l . vertex ( ( 0 + sideMargin ) , ( height - bottomMargin ) ) #NEWLINE# l . vertex ( ( ( width / 2 ) - ( hole / 2 ) ) , topMargin ) #NEWLINE# l . setStatic ( True ) #NEWLINE# l . setFill ( 0 ) #NEWLINE# l . setFriction ( 0 ) #NEWLINE# world . add ( l ) #NEWLINE# r = FPoly ( ) #NEWLINE# r . vertex ( ( ( width / 2 ) + ( hole / 2 ) ) , 0 ) #NEWLINE# r . vertex ( width , 0 ) #NEWLINE# r . vertex ( width , height ) #NEWLINE# r . vertex ( ( width - sideMargin ) , height ) #NEWLINE# r . vertex ( ( width - sideMargin ) , ( height - bottomMargin ) ) #NEWLINE# r . vertex ( ( ( width / 2 ) + ( hole / 2 ) ) , topMargin ) #NEWLINE# r . setStatic ( True ) #NEWLINE# r . setFill ( 0 ) #NEWLINE# r . setFriction ( 0 ) #NEWLINE# world . add ( l )