예제 #1
0
    def selectionChanged(self, index):
        if self._update_ert:
            assert 0 <= index < self.count(
            ), "Should not happen! Index out of range: 0 <= %i < %i" % (
                index, self.count())

            item = self._getAllCases()[index]
            selectOrCreateNewCase(item)
예제 #2
0
파일: caselist.py 프로젝트: oysteoh/ert
 def addItem(self):
     dialog = ValidatedDialog("New case", "Enter name of new case:",
                              getAllCases())
     new_case_name = dialog.showAndTell()
     if not new_case_name == "":
         selectOrCreateNewCase(new_case_name)
예제 #3
0
파일: caselist.py 프로젝트: berland/ert
 def addItem(self):
     dialog = ValidatedDialog("New case", "Enter name of new case:", getAllCases())
     new_case_name = dialog.showAndTell()
     if not new_case_name == "":
         selectOrCreateNewCase(new_case_name)
예제 #4
0
파일: caseselector.py 프로젝트: berland/ert
    def selectionChanged(self, index):
        if self._update_ert:
            assert 0 <= index < self.count(), "Should not happen! Index out of range: 0 <= %i < %i" % (index, self.count())

            item = self._getAllCases()[index]
            selectOrCreateNewCase(item)