PEATDB/Tables.py
def handle_left_click(self,event):
        """Does cell selection when mouse is clicked on canvas"""
        self.delete('rect')
        self.table.delete('entry')
        self.table.delete('multicellrect')
        colclicked = self.table.get_col_clicked(event)
        #set all rows selected
        self.table.allrows = True
        self.table.setSelectedCol(colclicked)
        
        if self.atdivider == 1:
            return
        self.draw_rect(self.table.currentcol)
        #also draw a copy of the rect to be dragged
        self.draggedcol=None
        self.draw_rect(self.table.currentcol, tag='dragrect',
                        color='red', outline='white')
        if hasattr(self, 'rightmenu'):
            self.rightmenu.destroy()
        #finally, draw the selected col on the table
        self.table.drawSelectedCol()
        return
Does cell selection when mouse is clicked on canvas
Does cell selection when mouse is clicked on canvas
Does cell selection when mouse is clicked on canvas
def handle_left_click(self,event):
        self.delete('rect')
        self.table.delete('entry')
        self.table.delete('multicellrect')
        colclicked = self.table.get_col_clicked(event)
        self.table.allrows = True
        self.table.setSelectedCol(colclicked)
        if self.atdivider == 1:
            return
        self.draw_rect(self.table.currentcol)
        self.draggedcol=None
        self.draw_rect(self.table.currentcol, tag='dragrect',
                        color='red', outline='white')
        if hasattr(self, 'rightmenu'):
            self.rightmenu.destroy()
        self.table.drawSelectedCol()
        return
def handle_left_click ( self , event ) : self . delete ( 'rect' ) self . table . delete ( 'entry' ) self . table . delete ( 'multicellrect' ) colclicked = self . table . get_col_clicked ( event ) self . table . allrows = True self . table . setSelectedCol ( colclicked ) if self . atdivider == 1 : return self . draw_rect ( self . table . currentcol ) self . draggedcol = None self . draw_rect ( self . table . currentcol , tag = 'dragrect' , color = 'red' , outline = 'white' ) if hasattr ( self , 'rightmenu' ) : self . rightmenu . destroy ( ) self . table . drawSelectedCol ( ) return
Does cell selection when mouse is clicked on canvas
Does cell selection when mouse is clicked on canvas
"""Does cell selection when mouse is clicked on canvas""" #set all rows selected #also draw a copy of the rect to be dragged #finally, draw the selected col on the table
self
event