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

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

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/SumRulesTool.py   pymca(Download)
        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.setShortcut(qt.Qt.CTRL+qt.Qt.Key_L)
        loadAction.setStatusTip('Loaded analysis file')
        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.setShortcut(qt.Qt.SHIFT+qt.Qt.CTRL+qt.Qt.Key_S)
        saveConfAsAction.setStatusTip('Saved analysis file')
        saveDataAction = qt.QAction('Save &Data', self)
        saveDataAction.setShortcut(qt.Qt.CTRL+qt.Qt.Key_D)
        saveDataAction.setStatusTip('Saved analysis file')
        saveDataAction.setToolTip('Save analysis in file (*.sra)')
        saveDataAction.triggered.connect(self.saveData)