Logo Search packages:      
Sourcecode: uligo version File versions  Download package

def uligo::App::nextProblem (   self  ) 

Display the next problem. 

Definition at line 937 of file uligo.py.

00937                          :
        """ Display the next problem. """
        
        if not self.pbms: return

        n, co, ori = self.pbmRec.getNext()
        self.creditAvailable = 1

        try:
            c = EnhancedCursor(self.pbms[n], self.comments)
        except SGFError:
            showwarning('Parsing Error', 'Error in SGF file!')
            return

        self.statusbar.set('empty')

        if self.tryVarVar.get():
            self.tryVarButton.deselect()
            self.tryVariation()
        if self.showSolVar.get():
            self.showSolutionButton.deselect()
            self.showSolution()

        self.board.state('normal', self.nextMove)
        self.activateButtons()
        try:
            self.setup(c, ' ('+str(n+1)+')', 1, co, ori) # display problem
        except SGFError:
            showwarning('Parsing Error', 'Error in SGF file!')
            return

        self.setWhoseTurn(self.inputColor)
        self.printStatistics(0) # update statistics window
        self.clock.stop()
        self.clock.reset()
        self.clock.start() # and start the clock ...


    def setWhoseTurn(self, c):


Generated by  Doxygen 1.6.0   Back to index