#NEWLINE# def _unregister_event_handlers( self ) : #NEWLINE# #INDENT# ' Unregister all event handlers setup in the constructor.  This is\n        typically done prior to an app shutting down and is needed since Linux\n        (and other non-Windows platforms?) trigger mouse, repaint, etc. events\n        for controls which have already been deleted.\n        ' #NEWLINE# control = self . control #NEWLINE# if ( control is not None ) : #NEWLINE# #INDENT# wx . EVT_PAINT ( control , None ) #NEWLINE# wx . EVT_SIZE ( control , None ) #NEWLINE# wx . EVT_LEFT_DOWN ( control , None ) #NEWLINE# wx . EVT_LEFT_UP ( control , None ) #NEWLINE# wx . EVT_LEFT_DCLICK ( control , None ) #NEWLINE# wx . EVT_RIGHT_DOWN ( control , None ) #NEWLINE# wx . EVT_RIGHT_UP ( control , None ) #NEWLINE# wx . EVT_MOTION ( control , None ) #NEWLINE# wx . EVT_LEAVE_WINDOW ( control , None )