gui/gui_mainLayout.py
def graphic_context_menu(self, pos):
        """
        This function will open a context menu on the graphic to save it.
        Inputs : pos : The position of the mouse cursor.
        """
        menu = QtGui.QMenu()
        self.actionSave_bis = menu.addAction("Save Figure")
        self.actionSave_as_bis = menu.addAction("Save Figure As ...")
        action = menu.exec_(self.table_widget.mapFromGlobal(pos))

        if action == self.actionSave_bis:
            self.save_figure()
        elif action == self.actionSave_as_bis:
            self.save_figure_as()
def graphic_context_menu(self, pos):
        """
        This function will open a context menu on the graphic to save it.
        Inputs : pos : The position of the mouse cursor.
        """
        menu = QtGui.QMenu()
        self.actionSave_bis = menu.addAction("Save Figure")
        self.actionSave_as_bis = menu.addAction("Save Figure As ...")
        action = menu.exec_(self.table_widget.mapFromGlobal(pos))

        if action == self.actionSave_bis:
            self.save_figure()
        elif action == self.actionSave_as_bis:
            self.save_figure_as()
def graphic_context_menu ( self , pos ) : menu = QtGui . QMenu ( ) self . actionSave_bis = menu . addAction ( "Save Figure" ) self . actionSave_as_bis = menu . addAction ( "Save Figure As ..." ) action = menu . exec_ ( self . table_widget . mapFromGlobal ( pos ) ) if action == self . actionSave_bis : self . save_figure ( ) elif action == self . actionSave_as_bis : self . save_figure_as ( )
This function will open a context menu on the graphic to save it.
        Inputs : pos : The position of the mouse cursor.
This function will open a context menu on the graphic to save it . Inputs : pos : The position of the mouse cursor .