Skip to content

Commit

Permalink
Converted datatypes prepping data for table
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobranz committed Aug 4, 2023
1 parent 8276ba5 commit c802d5f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Binary file modified __pycache__/database_commands.cpython-310.pyc
Binary file not shown.
Binary file modified __pycache__/passman_gui.cpython-310.pyc
Binary file not shown.
10 changes: 6 additions & 4 deletions passman_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion test.key

This file was deleted.

0 comments on commit c802d5f

Please sign in to comment.