def METHOD_NAME(self, event):
    """Create a new project
    """
    # Get session
    session = pavlovia.getCurrentSession()
    # If logged in, create project
    if session.user:
        dlg = sync.CreateDlg(self.parent, user=session.user)
        dlg.ShowModal()
    # Otherwise, prompt user to log in
    else:
        infoDlg = dialogs.MessageDialog(parent=None, type='Info',
                                        message=_translate(
                                                "You need to log in"
                                                " to create a project"))
        infoDlg.Show()