Esempio n. 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
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)