if self.edit.text().strip():
self.accept()
else:
if self.edit.text().trimmed():
self.accept()
def postProcess(self):
After Change
self.edit.setText(item.text())
def validate(self):
text = self.edit.text()
if hasattr(text, "strip"):
text = text.strip()
else:
text = text.trimmed()