Пример #1
0
    def updateList(self):
        """Retrieves data from the model and inserts it into the list"""
        case_list = getAllCases()

        self._list.clear()

        for case in case_list:
            self._list.addItem(case)
Пример #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)
Пример #3
0
 def getAllItems(self):
     return getAllCases()
Пример #4
0
 def getAllItems(self):
     return getAllCases()
Пример #5
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)
Пример #6
0
 def getAllItems(self):
     return getAllCases(self.facade)
Пример #7
0
 def _getAllCases(self):
     if self._show_only_initialized:
         return getAllInitializedCases()
     else:
         return getAllCases()
Пример #8
0
 def _getAllCases(self):
     if self._show_only_initialized:
         return getAllInitializedCases()
     else:
         return getAllCases()