def choose_option(self, event):
        """Choose option if it collides by executing method.

        Meant to be triggered by a mouse release action.

        The method in question is the mouse release
        method of the hovered option. We also make it so
        focus is lost (since the desired option was just
        set).

        Parameters
        ==========
        event (pygame.event.Event of pygame.MOUSEBUTTONUP
        type)
            parameter required in order to comply with the
            mouse action protocol; it is also necessary in
            this method, since its "pos" attribute is used
            to retrieve the mouse position;

            check pygame.event module documentation on
            pygame website for more info about this event
            object.
        """
        ### retrieve mouse position
        mouse_pos = event.pos

        ### iterate over option widgets, looking for the
        ### widget which collides with the mouse

        for widget in self.option_widgets:

            ## if you find the widget, execute its
            ## mouse release method and lose the focus
            ## of this option menu (there's no need to
            ## break out of this "for loop", since loosing
            ## the focus does so by raising an exception)

            if widget.rect.collidepoint(mouse_pos):

                widget.on_mouse_release(event)
                self.lose_focus()
Choose option if it collides by executing method.

        Meant to be triggered by a mouse release action.

        The method in question is the mouse release
        method of the hovered option. We also make it so
        focus is lost (since the desired option was just
        set).

        Parameters
        ==========
        event (pygame.event.Event of pygame.MOUSEBUTTONUP
        type)
            parameter required in order to comply with the
            mouse action protocol; it is also necessary in
            this method, since its "pos" attribute is used
            to retrieve the mouse position;

            check pygame.event module documentation on
            pygame website for more info about this event
            object.
        
nodezator/widget/optionmenu/op.py