def openPointTo(self): self.currentScreen.close() self.PointToInterf = pointToCard.pointToCardGame( self.screenLayout, database.getCardsToLearn(self.Table, 0, 9)) self.PointToInterf.show() self.currentScreen = self.PointToInterf self.PointToInterf.leave.connect(self.displayHomeScreen)
def openMemory(self): self.currentScreen.close() self.MemoryInterf = memory.MemoryGameWindow( self.screenLayout, database.getCardsToLearn(self.Table, 0, 9)) self.MemoryInterf.show() self.currentScreen = self.MemoryInterf self.MemoryInterf.leave.connect(self.displayHomeScreen)
def openVraiOuFaux(self): self.currentScreen.close() self.VFInterf = vraiOuFaux.vraiFauxGame( self.screenLayout, database.getCardsToLearn(self.Table, 0, 9)) self.VFInterf.show() self.currentScreen = self.VFInterf self.VFInterf.leave.connect(self.displayHomeScreen)
def openHotAndCold(self): self.currentScreen.close() self.HCInterf = hotColdGame.hotColdGame( self.screenLayout, database.getCardsToLearn(self.Table, 0, 9)) self.HCInterf.show() self.currentScreen = self.HCInterf self.HCInterf.leave.connect(self.displayHomeScreen)
def openDragAndDrop(self): self.currentScreen.close() self.DDInterf = dragAndDrop.dragDropGame( self.screenLayout, database.getCardsToLearn(self.Table, 0, 9)) self.DDInterf.show() self.currentScreen = self.DDInterf self.DDInterf.leave.connect(self.displayHomeScreen)
def getCards(self): self.cardsToLearn = database.getCardsToLearn(self.Table, 0, 4) self.cardsToGoOver = database.getCardsToLearn(self.Table, 5, 9) self.cardsKnown = database.getCardsToLearn(self.Table, 10, 10)