I want to fetch database row values and display it in some labels based upon the selected value of combo box.
The combo box successfully display 'item_name' from table_1 in the combo box. Now, I want to display 'item_name' relevant row values (like item_price, item_code, item_qty etc) in...
I tried to validate the QLineedit not to be empty without success.
I did
validator = QRegExpValidator(QRegExp(r'[0-9]+'))
self.lineEdit_2.setValidator(validator)
it is working.
But
def temp_var(self, text):
cur_txt = text
if cur_txt == 'Cheque' or cur_txt == 'Wire Transfer' or...