def click(self, event):
if event.button == <NUM_LIT:3>:<EOL><INDENT>if self.ui.tabWidget.currentIndex() == TabWidget.NORMAL_MODE:<EOL><INDENT>self.pos = QtGui.QCursor().pos()<EOL>self.graphic_context_menu(self.pos)<EOL><DEDENT><DEDENT>
This function intercepts the mouse's right click and its position.