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

def uligo::App::markRightWrong (   self  ) 

Used in 'navigate solution' mode: mark the correct/wrong variations. 

Definition at line 552 of file uligo.py.

00552                             :
        """ Used in 'navigate solution' mode: mark the correct/wrong variations. """

        try:
            if self.cursor.atEnd: return
            c = self.cursor.currentN.next.getData()
            if c.has_key('B'): color = 'B'
            else:              color = 'W'

            correct = self.cursor.correctChildren()
            n = self.cursor.currentN.next
            for i in range(self.cursor.noChildren()):
                c = n.getData()
                if i in correct:
                    self.board.placeMark(self.convCoord(c[color][0], self.orientation),'green')
                else:
                    self.board.placeMark(self.convCoord(c[color][0], self.orientation),'red')
                n = n.down
        except SGFError:
            showwarning('SGF Error', 'Error in SGF file!')
        

    def markAll(self):


Generated by  Doxygen 1.6.0   Back to index