Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/QStackWidget.py   pymca(Download)
                                                                    method))
                if pixmap is not None:
                    action = qt.QAction(qt.QIcon(qt.QPixmap(pixmap)),
                                        text,
                                        self)
                else:
                    action = qt.QAction(text, self)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/SumRulesTool.py   pymca(Download)
        ffile = menu.addMenu('&File')
 
        openAction = qt.QAction('&Open Spec File', self)
        openAction.setShortcut(qt.Qt.CTRL+qt.Qt.Key_O)
        openAction.setStatusTip('Opened file')
        openAction.setToolTip('Opens a data file (*.spec)')
        openAction.triggered.connect(self.loadData)
 
        loadAction = qt.QAction('&Load Configuration', self)
        loadAction.triggered.connect(self.loadConfiguration)
 
        saveConfAction = qt.QAction('&Save Configuration', self)
        saveConfAction.setShortcut(qt.Qt.CTRL+qt.Qt.Key_S)
        saveConfAction.setStatusTip('Saved analysis file')
        saveConfAction.setToolTip('Save analysis in file (*.sra)')
        saveConfAction.triggered.connect(self.saveConfiguration)
 
        saveConfAsAction = qt.QAction('Save &Configuration as', self)
        saveConfAsAction.triggered.connect(self.saveConfigurationAs)
 
        saveDataAction = qt.QAction('Save &Data', self)
        saveDataAction.setShortcut(qt.Qt.CTRL+qt.Qt.Key_D)
        saveDataAction.setStatusTip('Saved analysis file')

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/XMCDWindow.py   pymca(Download)
            else:
                fName = function.func_name
            act = qt.QAction(fName,  self)
            # Force triggered() instead of triggered(bool)
            # to ensure proper interaction with default parameters

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/PyMcaMain.py   pymca(Download)
    def initMenuBar(self):
        if self.options["MenuFile"]:
            #build the actions
            #fileopen
            self.actionOpen = qt.QAction(self)
            self.actionOpen.triggered[bool].connect(self.onOpen)
            #filesaveas
            self.actionSaveAs = qt.QAction(self)
            self.actionSaveAs.setText(QString("&Save"))
            self.actionSaveAs.setIcon(self.Icons["filesave"])
            self.actionSaveAs.setShortcut(qt.Qt.CTRL+qt.Qt.Key_S)
            self.actionSaveAs.triggered[bool].connect(self.onSaveAs)
 
            #filesave
            self.actionSave = qt.QAction(self)
 
            #fileprint
            self.actionPrint = qt.QAction(self)
            self.actionPrint.setText(QString("&Print"))
            self.actionPrint.setIcon(self.Icons["fileprint"])
            self.actionPrint.setShortcut(qt.Qt.CTRL+qt.Qt.Key_P)
            self.actionPrint.triggered[bool].connect(self.onPrint)
 
            #filequit
            self.actionQuit = qt.QAction(self)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/PyMcaMdi.py   pymca(Download)
    def createActions(self):
            #fileopen
            self.actionOpen = qt.QAction(self)
            self.actionOpen.setText(QString("&Open"))
            self.actionOpen.setIcon(self.Icons["fileopen"])
            self.actionOpen.setShortcut(qt.Qt.CTRL+qt.Qt.Key_O)
            self.actionOpen.triggered[bool].connect(self.onOpen)
            #filesaveas
            self.actionSaveAs = qt.QAction(self)
 
            #filesave
            self.actionSave = qt.QAction(self)
            self.actionSave.setText(QString("Save &Defaults"))
            #self.actionSave.setIcon(self.Icons["filesave"])
            #self.actionSave.setShortcut(qt.Qt.CTRL+qt.Qt.Key_S)
            self.actionSave.triggered[bool].connect(self.onSave)
 
            #fileprint
            self.actionPrint = qt.QAction(self)
 
            #filequit
            self.actionQuit = qt.QAction(self)
            self.actionQuit.setText(QString("&Quit"))
            #self.actionQuit.setIcon(self.Icons["fileprint"])