I am trying to check if 3 values are equal to None because I want to make error handling for my PyQT5 application. I have tried every possible way of checking if values are empty but still not the wanted result. At the moment I have 3 QLineEdit's that I need to check if they are empty but it always displays different information.
self.name_edit = self.nameEdit.text()
self.jobTitle_edit = self.jobTitleEdit.text()
self.mob_edit = self.mobEdit.text()
self.businessUnit = str(self.BusinessUnit.currentText())
check = [self.name_edit, self.jobTitle_edit, self.mob_edit]
if check == None:
data = "FailedNoInfo"
self.windows2 = notifyWindow(data)
print(self.nameEdit.text())
print(self.mobEdit.text())
else:
ProcessData(data)
print(self.nameEdit.text())
print(self.mobEdit.text())
print(self.jobTitleEdit.text())
This is the last way I checked if they were empty and this resulted in nothing. Does someone have an idea why this is going wrong with multiple values as this is working fine without any issues with 1 value.
Edit 1
Checking if the check is None is stupid because it is not it is an empty array but not None. But nothing seems to be working here been stuck on this for waaaay to long.