def makeDBItem(self, dbCb):
     dbList, errorText = DatabaseBackup.getDB()
     if errorText != "":
         QMessageBox.warning(None, "hint", errorText)
         sys.exit()
     else:
         index = 0
         for db in dbList:
             dbCb.insertItem(index, db)
             index += 1
 def makeDBCheck(self, grid, row, col):
     dbList, errorText = DatabaseBackup.getDB()
     if errorText != "":
         QMessageBox.warning(None, "hint", errorText)
         sys.exit()
     else:
         for db in dbList:
             dbCk = QCheckBox(db)
             dbCk.stateChanged.connect(self.selectDB)
             self.dbCkList.append(dbCk)
             grid.addWidget(dbCk, row, col)
             col += 1
             if col > 3:
                 row += 1
                 col = 1
     return row