def editCharacteristic(self):
     if self.countRowsSelected(self.tblHouseholdCharacteristics) != 0:
         # get the characteristic name
         selectedRow = self.getCurrentRow(self.tblHouseholdCharacteristics)
         charname = self.tblHouseholdCharacteristics.model().item(selectedRow,0).text()
         # show edit household characteristic form
         form = FrmAddHouseholdCharacteristic(self, charname)
         form.exec_()
     else:
         QMessageBox.information(self,"Edit Household Characteristic","Please select the row containing a household characteristic to be editted.")
 def addCharacteristic(self):
     form = FrmAddHouseholdCharacteristic(self)
     form.exec_()