#NEWLINE# def _left_up( self , event ) : #NEWLINE# #INDENT# ' Handles the left mouse button being released.\n        ' #NEWLINE# window = self . control #NEWLINE# if ( self . _owner is not None ) : #NEWLINE# #INDENT# window . ReleaseMouse ( ) #NEWLINE# self . _owner . mouse_up ( event ) #NEWLINE# self . _owner = None #NEWLINE# #UNINDENT# if event . ShiftDown ( ) : #NEWLINE# #INDENT# if event . ControlDown ( ) : #NEWLINE# #INDENT# if event . AltDown ( ) : #NEWLINE# #INDENT# contents = self . sizer . GetContents ( ) #NEWLINE# if ( contents is not None ) : #NEWLINE# #INDENT# contents . dump ( ) #NEWLINE# sys . stdout . flush ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . sizer . ResetStructure ( window ) #NEWLINE# self . update_layout ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if event . AltDown ( ) : #NEWLINE# #INDENT# self . sizer . ToggleLock ( ) #NEWLINE# self . update_layout ( )