(self, row, col, color=None, tag=None, delete=1)
return
Cell is colored
Cell is colored
Cell is colored
def drawRect(self, row, col, color=None, tag=None, delete=1):
        """Cell is colored"""
        if delete==1:
            self.delete('cellbg'+str(row)+str(col))
        if color==None or color==self.bgcolor:
            return
        else:
            bg=color
        if tag==None:
            recttag='fillrect'
        else:
            recttag=tag
        w=1
        x1,y1,x2,y2 = self.getCellCoords(row,col)
        rect = self.create_rectangle(x1+w/2,y1+w/2,x2-w/2,y2-w/2,
                                  fill=bg,
                                  outline=bg,
                                  width=w,
                                  tag=(recttag,'cellbg'+str(row)+str(col)))
        self.lower(recttag)
        return
def drawRect ( self , row , col , color = None , tag = None , delete = 1 ) : if delete == 1 : self . delete ( 'cellbg' + str ( row ) + str ( col ) ) if color == None or color == self . bgcolor : return else : bg = color if tag == None : recttag = 'fillrect' else : recttag = tag w = 1 x1 , y1 , x2 , y2 = self . getCellCoords ( row , col ) rect = self . create_rectangle ( x1 + w / 2 , y1 + w / 2 , x2 - w / 2 , y2 - w / 2 , fill = bg , outline = bg , width = w , tag = ( recttag , 'cellbg' + str ( row ) + str ( col ) ) ) self . lower ( recttag ) return