def contextMenuEvent ( self , event ) : self . update_menu ( ) self . menu . popup ( event . globalPos ( ) )
python menu clicked signal/slot
Override Qt method
def contextMenuEvent(self, event):
        """Override Qt method"""
        self.update_menu()
        self.menu.popup(event.globalPos())