Absolutely newbie in Python. Statement is satisfied as user exist in DB so program prints "DETAILS CORRECT" but also I would like it to jump to next window (made in PyQt5) by going through next function. Is that correct? def function2
else:
cur = conn.cursor()
query = 'SELECT customer_password FROM customers_table WHERE customer_login =\'' + customerlogin + "\'"
cur.execute(query)
result_pass = cur.fetchone()[0]
if result_pass == customerpassword:
def function2():
self.errorlabel.setText("DETAILS CORRECT")
else:
self.errorlabel.setText("PLEASE CHECK DATA OR REGISTER")