def METHOD_NAME(parent, event, func, menuitem=None, *args, **kwargs):
    """ Connects an event to a function.
    parent wx.window: The widget that will listen for the event.
    event widgetUtils.event: The event that will be listened for the parent. The event should be one of the widgetUtils events.
    function func: The function that will be connected to the event."""
    if menuitem == None:
        return getattr(parent, "Bind")(event, func, *args, **kwargs)
    else:
        return getattr(parent, "Bind")(event, func, menuitem, *args, **kwargs)