(self, event)
return
Handle column drag, will be either to move cols or resize
Handle column drag, will be either to move cols or resize
Handle column drag will be either to move cols or resize
def handle_mouse_drag(self, event):
        """Handle column drag, will be either to move cols or resize"""

        x=int(self.canvasx(event.x))
        if self.atdivider == 1:
            self.table.delete('resizeline')
            self.delete('resizeline')
            self.table.create_line(x, 0, x, self.table.rowheight*self.table.rows,
                                width=2, fill='gray', tag='resizeline')
            self.create_line(x, 0, x, self.height,
                                width=2, fill='gray', tag='resizeline')
            return
        else:
            w = self.table.cellwidth
            self.draggedcol = self.table.get_col_clicked(event)
            x1, y1, x2, y2 = self.coords('dragrect')
            x=int(self.canvasx(event.x))
            y = self.canvasy(event.y)
            self.move('dragrect', x-x1-w/2, 0)

        return
def handle_mouse_drag ( self , event ) : x = int ( self . canvasx ( event . x ) ) if self . atdivider == 1 : self . table . delete ( 'resizeline' ) self . delete ( 'resizeline' ) self . table . create_line ( x , 0 , x , self . table . rowheight * self . table . rows , width = 2 , fill = 'gray' , tag = 'resizeline' ) self . create_line ( x , 0 , x , self . height , width = 2 , fill = 'gray' , tag = 'resizeline' ) return else : w = self . table . cellwidth self . draggedcol = self . table . get_col_clicked ( event ) x1 , y1 , x2 , y2 = self . coords ( 'dragrect' ) x = int ( self . canvasx ( event . x ) ) y = self . canvasy ( event . y ) self . move ( 'dragrect' , x - x1 - w / 2 , 0 ) return