Exemplo n.º 1
0
 def __init__(self, dat, parent=None, flags=QtCore.Qt.WindowCloseButtonHint):
     super(dataBrowserDialog, self).__init__(parent=parent, flags=flags)
     self.setupUi(self)
     self.dat = dat
     # self.closeButton.clicked.connect( self.closeButtonClick )
     self.dataFrame = dataBrowserFrame(dat, self)
     self.layout().addWidget(self.dataFrame)
Exemplo n.º 2
0
 def __init__(self, dat, parent=None):
     super(dataBrowserDialog, self).__init__(parent=parent)
     self.setupUi(self)
     self.dat = dat
     #self.closeButton.clicked.connect( self.closeButtonClick )
     self.dataFrame = dataBrowserFrame(dat, self)
     self.layout().addWidget(self.dataFrame)
Exemplo n.º 3
0
    def __init__(self, dat, parent=None):
        '''

        '''
        super(surrogateFrame, self).__init__(parent=parent)
        self.mainWin = parent
        self.setupUi(self)
        self.dat = dat
        self.blockapply = False
        self.tools = sorted(list(dat.surrogateMethods.plugins.keys()),
                            key=lambda s: s.lower())
        self.toolSelectBox.clear()
        self.toolSelectBox.addItems(self.tools)
        self.createOptionsTables()
        self.toolSelectBox.currentIndexChanged.connect(self.selectTool)
        self.toolBox.setCurrentIndex(1)
        self.dataBrowser = dataBrowserFrame(dat, self.toolBox.currentWidget())
        self.dataBrowser.editFiltersButton.clicked.connect(self.updateFilters)
        self.toolBox.currentWidget().layout().addWidget(self.dataBrowser)
        self.runButton.clicked.connect(self.run)
        self.inputCols = gh.colIndexes(self.inputTable)
        self.outputCols = gh.colIndexes(self.outputTable)
        self.refreshContents()
        self.timer = QtCore.QTimer(self)
        self.timer.timeout.connect(self.updateStatus)
        self.updateDelay = 500
        self.runButton.setEnabled(True)
        self.stopButton.setEnabled(False)
        self.stopButton.clicked.connect(self.stop)
        self.addAllInButton.clicked.connect(self.selectAllInputs)
        self.addAllOutButton.clicked.connect(self.selectAllOutputs)
        self.delAllInButton.clicked.connect(self.selectNoInputs)
        self.delAllOutButton.clicked.connect(self.selectNoOutputs)
        self.ivGeneralButton1.clicked.connect(self.ivGeneralButton1Click)
        self.ivGeneralButton2.clicked.connect(self.ivGeneralButton2Click)
        self.ovGeneralButton1.clicked.connect(self.ovGeneralButton1Click)
        self.ovGeneralButton2.clicked.connect(self.ovGeneralButton2Click)
        self.addSamplesButton.clicked.connect(self.addSamples)
        self.prevTool = None
        try:
            self.selectTool(0)
        except:
            pass
        self.toolBox.setCurrentIndex(0)