PEATDB/Tables.py
def draw_rect(self, row=None, tag=None, color=None, outline=None, delete=1):
        """Draw a rect representing row selection"""
        if tag==None:
            tag='rect'
        if color==None:
            color='#0099CC'
        if outline==None:
            outline='gray25'
        if delete == 1:
            self.delete(tag)
        w=0
        i = self.inset
        x1,y1,x2,y2 = self.table.getCellCoords(row, 0)
        rect = self.create_rectangle(0+i,y1+i,self.x_start-i,y2,
                                      fill=color,
                                      outline=outline,
                                      width=w,
                                      tag=tag)
        self.lift('text')
        return
Draw a rect representing row selection
Draw a rect representing row selection
Draw a rect representing row selection
def draw_rect(self, row=None, tag=None, color=None, outline=None, delete=1):
        if tag==None:
            tag='rect'
        if color==None:
            color='#0099CC'
        if outline==None:
            outline='gray25'
        if delete == 1:
            self.delete(tag)
        w=0
        i = self.inset
        x1,y1,x2,y2 = self.table.getCellCoords(row, 0)
        rect = self.create_rectangle(0+i,y1+i,self.x_start-i,y2,
                                      fill=color,
                                      outline=outline,
                                      width=w,
                                      tag=tag)
        self.lift('text')
        return
def draw_rect ( self , row = None , tag = None , color = None , outline = None , delete = 1 ) : if tag == None : tag = 'rect' if color == None : color = '#0099CC' if outline == None : outline = 'gray25' if delete == 1 : self . delete ( tag ) w = 0 i = self . inset x1 , y1 , x2 , y2 = self . table . getCellCoords ( row , 0 ) rect = self . create_rectangle ( 0 + i , y1 + i , self . x_start - i , y2 , fill = color , outline = outline , width = w , tag = tag ) self . lift ( 'text' ) return
Draw a rect representing row selection
Draw a rect representing row selection
"""Draw a rect representing row selection"""
self
row
tag
color
outline
delete