PEATDB/Tables.py
def draw_rect(self,col, tag=None, color=None, outline=None, delete=1):
        """User has clicked to select a col"""
        if tag==None:
            tag='rect'
        if color==None:
            color='#0099CC'
        if outline==None:
            outline='gray25'
        if delete == 1:
            self.delete(tag)
        w=2
        x1,y1,x2,y2 = self.table.getCellCoords(0,col)
        rect = self.create_rectangle(x1,y1-w,x2,self.height,
                                  fill=color,
                                  outline=outline,
                                  width=w,
                                  stipple='gray50',
                                  tag=tag)
        self.lower(tag)
        return
User has clicked to select a col
User has clicked to select a col
User has clicked to select a col
def draw_rect(self,col, 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=2
        x1,y1,x2,y2 = self.table.getCellCoords(0,col)
        rect = self.create_rectangle(x1,y1-w,x2,self.height,
                                  fill=color,
                                  outline=outline,
                                  width=w,
                                  stipple='gray50',
                                  tag=tag)
        self.lower(tag)
        return
def draw_rect ( self , col , 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 = 2 x1 , y1 , x2 , y2 = self . table . getCellCoords ( 0 , col ) rect = self . create_rectangle ( x1 , y1 - w , x2 , self . height , fill = color , outline = outline , width = w , stipple = 'gray50' , tag = tag ) self . lower ( tag ) return
User has clicked to select a col
User has clicked to select a col
"""User has clicked to select a col"""
self
col
tag
color
outline
delete