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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/ConfigureFiltersDialog.py   PyRQ(Download)
from PyRQ.Ui.qt4.RRQDebugger.FiltererEnablers import Enablers
import os
from PyRQ.Ui.qt4.RRQDebugger.SaveFilterActionAsDialog import SaveFilterActionAsDialog
 
class ConfigureFiltersDialog(QtGui.QDialog):
    def _onSaveAs(self):
        action = ConfigureFiltersDialog.indicees[self.comboBox_Action.currentIndex()]
        existingNames = self.config.getExistingUserActionFilterNames(action)
        #    Ask for the name to save as, present the existing one, offer overwrite action.
        mb = SaveFilterActionAsDialog(self, action, existingNames)
        #    Ask for the name to save as, present the existing one, offer overwrite action.
        desc = "Load the filter properties for action: %(A)s"%{"A":action}
        mb = SaveFilterActionAsDialog(self, action, existingNames, desc=desc)
        path = os.path.join(self.resourcesPath, SaveFilterActionAsDialog.RESOURCE_NAME)
        uic.loadUi(path, mb)