Пример #1
0
 def finish(self, evt):
     res = self.board.checkValid()
     if res:
         msg = _('Congratulations! You had finish this Sudoku!')
         self.spendTimer.Stop()
         
         g_userInfo = GetUserInfo()
         g_userInfo.setRecord(self.puzzleID, self.spendTime)
     else:
         msg = _('Hey man! Your answer is wrong... try again!')
     dlg = wx.MessageDialog(None, msg, _('Information'), style=wx.OK)
     dlg.ShowModal()
     dlg.Destroy()