#NEWLINE# def resize( self , event ) : #NEWLINE# #INDENT# '\n        Resize screen\n        :param event:\n        :return:\n        ' #NEWLINE# ( cwdth , chght ) = ( self . font . measure ( ' ' ) , self . font . metrics ( 'linespace' ) ) #NEWLINE# logging . debug ( 'Font: %s' , ( cwdth , cwdth ) ) #NEWLINE# width = int ( math . floor ( ( ( self . text . winfo_width ( ) - ( float ( cwdth ) / 2 ) ) / float ( cwdth ) ) ) ) #NEWLINE# height = int ( math . floor ( ( self . text . winfo_height ( ) / float ( chght ) ) ) ) #NEWLINE# self . size = ( width , height ) #NEWLINE# self . root . title ( ( self . title + ( ' %sx%s' % self . size ) ) )