def standby_control(self):
        """Process events in standby mode.

        Allows the widget to watch out for specific events
        to define which mode to enable next.
        """
        for event in SERVICES_NS.get_events():

            if event.type == QUIT:
                raise QuitAppException

            ### enable the next mode depending on the event
            ### that happens first; once the mode is enabled,
            ### we must exit the for-loop with a "break" statement
            ### to prevent additional events to cause another
            ### mode to be set as well

            ## moving the mouse

            elif event.type == MOUSEMOTION:

                self.enable_mouse_edition_mode()
                break

            ## releasing the mouse left button

            elif event.type == MOUSEBUTTONUP:

                if event.button == 1:

                    self.enable_keyboard_edition_mode()
                    break

            ## if window is resized, set the movement watch
            ## out routine

            elif event.type == WINDOW_RESIZE_EVENT_TYPE:

                self.movement_watch_out_routine = self.watch_out_for_movement

        self.movement_watch_out_routine()
Process events in standby mode.

        Allows the widget to watch out for specific events
        to define which mode to enable next.
        
nodezator/widget/intfloatentry/modes.py