示例#1
0
文件: menu.py 项目: qenops/psychopy
 def onNew(self, event):
     """Create a new project
     """
     if pavlovia.getCurrentSession().user.username:
         projEditor = ProjectEditor()
         if projEditor.ShowModal() == wx.ID_OK:
             self.parent.project = projEditor.project
             # do a first sync as well
             syncProject(parent=self.parent, project=projEditor.project)
     else:
         infoDlg = dialogs.MessageDialog(parent=None, type='Info',
                                         message=_translate(
                                                 "You need to log in"
                                                 " to create a project"))
         infoDlg.Show()
示例#2
0
文件: menu.py 项目: datalowe/psychopy
 def onSync(self, event):
     retVal = syncProject(parent=self.parent, project=self.parent.project)
     if hasattr(self.parent, 'gitFeedback'):
         self.parent.gitFeedback(retVal)
示例#3
0
 def onSync(self, event):
     syncProject(parent=self.parent, project=self.parent.project)
示例#4
0
 def onSync(self, event):
     retVal = syncProject(parent=self.parent, project=self.parent.project)
     self.parent.gitFeedback(retVal)
示例#5
0
 def onSync(self, event):
     syncProject(parent=self.parent, project=self.parent.project)