def drag_mode_handle_events(self):
        """Event handling for the drag mode."""
        for event in SERVICES_NS.get_events():

            ### raise specific error if the user attempts
            ### to quit the app
            if event.type == QUIT:
                raise QuitAppException

            ### trigger mouse release action if mouse
            ### left button is released

            elif event.type == MOUSEBUTTONUP:

                if event.button == 1:
                    self.perform_drag_mode_exit_setups()
Event handling for the drag mode.
nodezator/our3rdlibs/sortingeditor/modes.py