Here s my whole
codes, I will be grateful if you could help. I am a self learner and a newbie in python and sometime it is hard to grabs the meaning.
import sqlite3
from PyQt5 import QtWidgets, uic, QtCore
import sys
from PyQt5.QtCore import QTime, QDate, QTimer, QRegExp, Qt
from PyQt5.QtGui...
Thanks for your reply. What I want to do is displaying other relevant data (column value) to be displayed in the label/textbox whenever the combobox value is changed.
My expectation:
If combobox value 'mango' is selected:
label_1 = MGO
label_2 = 20
label_3 = 150
and if combobox value 'apple'...
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...