(self, event)
return
respond to a right click
respond to a right click
respond to a right click
def handle_right_click(self, event):
        """respond to a right click"""

        if self.read_only is True:
            return
        self.delete('tooltip')
        self.tablerowheader.clearSelected()
        if hasattr(self, 'rightmenu'):
            self.rightmenu.destroy()
        rowclicked = self.get_row_clicked(event)
        colclicked = self.get_col_clicked(event)
        if colclicked == None:
            self.rightmenu = self.popupMenu(event, outside=1)
            return

        if (rowclicked in self.multiplerowlist or self.allrows == True) and colclicked in self.multiplecollist:
            self.rightmenu = self.popupMenu(event, rows=self.multiplerowlist, cols=self.multiplecollist)
        else:
            if 0 <= rowclicked < self.rows and 0 <= colclicked < self.cols:
                self.clearSelected()
                self.allrows = False
                self.setSelectedRow(rowclicked)
                self.setSelectedCol(colclicked)
                self.drawSelectedRect(self.currentrow, self.currentcol)
                self.drawSelectedRow()
            if self.isInsideTable(event.x,event.y) == 1:
                self.rightmenu = self.popupMenu(event,rows=self.multiplerowlist, cols=self.multiplecollist)
            else:
                self.rightmenu = self.popupMenu(event, outside=1)
        return
def handle_right_click ( self , event ) : if self . read_only is True : return self . delete ( 'tooltip' ) self . tablerowheader . clearSelected ( ) if hasattr ( self , 'rightmenu' ) : self . rightmenu . destroy ( ) rowclicked = self . get_row_clicked ( event ) colclicked = self . get_col_clicked ( event ) if colclicked == None : self . rightmenu = self . popupMenu ( event , outside = 1 ) return if ( rowclicked in self . multiplerowlist or self . allrows == True ) and colclicked in self . multiplecollist : self . rightmenu = self . popupMenu ( event , rows = self . multiplerowlist , cols = self . multiplecollist ) else : if 0 <= rowclicked < self . rows and 0 <= colclicked < self . cols : self . clearSelected ( ) self . allrows = False self . setSelectedRow ( rowclicked ) self . setSelectedCol ( colclicked ) self . drawSelectedRect ( self . currentrow , self . currentcol ) self . drawSelectedRow ( ) if self . isInsideTable ( event . x , event . y ) == 1 : self . rightmenu = self . popupMenu ( event , rows = self . multiplerowlist , cols = self . multiplecollist ) else : self . rightmenu = self . popupMenu ( event , outside = 1 ) return