#NEWLINE# def centerBox( self ) : #NEWLINE# #INDENT# self_width = self . getOffsetWidth ( ) #NEWLINE# self_height = self . getOffsetHeight ( ) #NEWLINE# height = Window . getClientHeight ( ) #NEWLINE# width = Window . getClientWidth ( ) #NEWLINE# center_x = ( int ( width ) / 2 ) #NEWLINE# center_y = ( int ( self_left ) / 2 ) #NEWLINE# self_top = ( center_y - ( int ( self_height ) / 2 ) ) #NEWLINE# self_left = ( center_x - ( int ( self_width ) / 2 ) ) #NEWLINE# self . setPopupPosition ( self_left , self_top )