#NEWLINE# def on_mouse_drag( self , x , y , dx , dy , buttons , modifiers ) : #NEWLINE# #INDENT# ( ox , oy ) = self . offset #NEWLINE# width = ( x + ox ) #NEWLINE# height = ( ( self . window . height - y ) + oy ) #NEWLINE# self . window . set_size ( width , height )