def beforeRecall(self):
     self.shuffleTable()#self.tableImageRecall
     self.prepareImageRecall()
     recallsheet="./recallMaterial/recall.html"
     tgenF.createTemplate(self.tableImageRecall,recallsheet,self.path)
     openFileMultipleOs(recallsheet)
     self.buildSolution()
    def createAndOpenSheet(self):
        """ Open a temp file as a recall sheet
        """
        with open(self.tempFile, 'w') as f:
            pass

        if os.name == 'nt':
            openFileMultipleOs(self.tempFile)# windows only, for mac : os.system("open "+filename)
        else:
            os.system("open "+filename) #TODO !!!
 def createAndOpenSheet(self): #overriding default method
     with open(self.tempFile, 'wb') as f:
         dates=[]
         random.shuffle(self.solution)#recall sheet is shuffled !
         self.update_table_solution()#update table accordingly
         for l in self.solution:
             datelabel=l[0][4:]
             date=l[0][:4]
             dates.append(date)
             f.write(datelabel+'\n')
         self.solution=dates
     openFileMultipleOs(self.tempFile)# windows only, for mac : os.system("open "+filename)
 def createAndOpenSheet(self): #overriding default method
     with open(self.tempFile, 'wb') as f:
         for indexImage in range(self.nbRows*self.lengthColumn):
             f.write(str(indexImage+1)+';\n')
     openFileMultipleOs(self.tempFile)# windows only, for mac : os.system("open "+filename)
 def displayLearningMaterial(self):
     self.nameAndFaces=self.bindNamesToImages()
     tgenF.createTemplate(self.nameAndFaces,self.sheetName,self.path)
     openFileMultipleOs(self.sheetName)# windows only, for mac : os.system("open "+filename)
     time.sleep(self.memoTime)
 def displayLearningMaterial(self):
     self.tableRepresentation=self.buildTable()
     sheetName="./recallMaterial/learn.html"
     tgen.createTemplate(self.tableRepresentation,sheetName,self.path)
     openFileMultipleOs(sheetName)# windows only, for mac : os.system("open "+filename)
     time.sleep(self.memoTime)