#NEWLINE# def perform( self ) : #NEWLINE# #INDENT# T = self . T #NEWLINE# if ( not self . firstTime ) : #NEWLINE# #INDENT# hw = ( self . w / 2 ) #NEWLINE# hh = ( self . h / 2 ) #NEWLINE# if ( ( T . x < ( - hw ) ) or ( ( T . x + 400 ) > hw ) ) : #NEWLINE# #INDENT# self . hstride = ( - self . hstride ) #NEWLINE# #UNINDENT# if ( ( T . y < ( - hh ) ) or ( ( T . y + 100 ) > hh ) ) : #NEWLINE# #INDENT# self . stride = ( - self . stride ) #NEWLINE# #UNINDENT# T . move ( ( T . x + self . hstride ) , ( T . y + self . stride ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . firstTime = False #NEWLINE# T . size ( random . randint ( 9 , 48 ) ) #NEWLINE# T . listFonts ( ) . addCallback ( ( lambda fnts : T . font ( random . choice ( fnts ) ) ) )