diff --git a/__pycache__/database_commands.cpython-310.pyc b/__pycache__/database_commands.cpython-310.pyc index c9be9dc..e7bf673 100644 Binary files a/__pycache__/database_commands.cpython-310.pyc and b/__pycache__/database_commands.cpython-310.pyc differ diff --git a/__pycache__/passman_gui.cpython-310.pyc b/__pycache__/passman_gui.cpython-310.pyc index 4f79e30..9b5d5e6 100644 Binary files a/__pycache__/passman_gui.cpython-310.pyc and b/__pycache__/passman_gui.cpython-310.pyc differ diff --git a/passman_gui.py b/passman_gui.py index 8f77c58..d8e356e 100644 --- a/passman_gui.py +++ b/passman_gui.py @@ -6,7 +6,9 @@ user_entries = () def append_to_list(entry): - user_entries += entry + global user_entries + for i in list(entry): + user_entries += i class PassMan(customtkinter.CTk): def __init__(self): @@ -55,8 +57,9 @@ def __init__(self, parent, controller): login_button.grid(row=7, column=1) switch_window_button = customtkinter.CTkButton(self, text="Sign Up", command=lambda: controller.show_frame(SignUp)) switch_window_button.grid(row=6, column=1) - test_button = customtkinter.CTkButton(self, text="Test", command=lambda: [append_to_list(database_commands.queryEntry(loginID.get())), print(user_entries)]) + test_button = customtkinter.CTkButton(self, text="Test", command=lambda: append_to_list(database_commands.queryEntry(loginID.get()))) test_button.grid(row=8, column=1) + # command=lambda: [append_to_list(database_commands.queryEntry(loginID.get())), print(user_entries)] class SignUp(customtkinter.CTkFrame): def __init__(self, parent, controller): @@ -110,8 +113,7 @@ def __init__(self, parent, controller): e = customtkinter.CTkEntry(self) e.grid(row=i, column=j) - e.insert(END, user_entries[i][j])) - + e.insert(END, user_entries[i][j]) if __name__ == "__main__": test = PassMan() diff --git a/test.key b/test.key deleted file mode 100644 index 8e66ed7..0000000 --- a/test.key +++ /dev/null @@ -1 +0,0 @@ -UxgRveq2MVhfE13XL3i8MTsGTWXozodS4WRSp_908Qs= \ No newline at end of file