(self,event)
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):
        """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)
        if colclicked == None:
            return
        #set all rows selected
        self.table.allrows = True
        self.table.setSelectedCol(colclicked)

        if self.atdivider == 1:
            return
        self.drawRect(self.table.currentcol)
        #also draw a copy of the rect to be dragged
        self.draggedcol = None
        self.drawRect(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
def handle_left_click ( self , event ) : self . delete ( 'rect' ) self . table . delete ( 'entry' ) self . table . delete ( 'multicellrect' ) colclicked = self . table . get_col_clicked ( event ) if colclicked == None : return #set all rows selected self . table . allrows = True self . table . setSelectedCol ( colclicked ) if self . atdivider == 1 : return self . drawRect ( self . table . currentcol ) #also draw a copy of the rect to be dragged self . draggedcol = None self . drawRect ( 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