-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit Account Window #42
Labels
Milestone
Comments
karastoyanov
added
enhancement
New feature or request
pyqt-gui
QT Graphical User Interface
labels
May 30, 2023
Last update: 27fc837
|
Last update: e7a13ba
"""BRING BACK THE CATEGORIES - CALL THE GLOBAL FUNCTION"""
def open_categories():
hide_user_update_settings() """THIS FUNCTION IS USED TO HIDE THE UPDATE USER SETTIGNS GROUPBOX AND SHOW AGAIN CATEGORIES"""
global hide_user_update_settings
def hide_user_update_settings():
update_user_settings_groupbox.hide()
categories_groupbox.show() |
Last update: c937fae
|
Last update: 30958cd
# Not fully implemented, fucntion is still taking old data from qlineedit's
def update_user():
user_data = []
# Make this query dynamically accepting the username in production
update_user_query = (f"UPDATE customers SET first_name = %s, last_name = %s, phone = %s, email_address = %s WHERE username = 'pesho'")
postgres_conn.POSTGRES_CURSOR.execute(update_user_query, (user_data[0], user_data[1], user_data[2], user_data[3]))
postgres_conn.POSTGRES_CONNECTION.commit() |
Last update: 1ce241d
user_data.append(current_line_edit) In the query call the postgres_conn.POSTGRES_CURSOR.execute(update_user_query, (user_data[0].text(), user_data[1].text(), user_data[2].text(), user_data[3].text())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Basic Edit Account functionality implemented in a separate window
The text was updated successfully, but these errors were encountered: