diff --git a/db.json b/db.json index e9b1817..33dcf35 100644 --- a/db.json +++ b/db.json @@ -1 +1 @@ -{"_default": {}} \ No newline at end of file +{"_default": {"1": {"Serial Number": "1", "Brand": "3", "Grade": "4", "Name": "5"}}} \ No newline at end of file diff --git a/main.py b/main.py index ad11387..dbdaf19 100644 --- a/main.py +++ b/main.py @@ -128,6 +128,15 @@ def main(): window["Brand"].update(row[1]) window["Grade"].update(row[2]) window["Name"].update(row[3]) + + elif event == "Check Out": + SN = window["Serial Number"].get() + G = window["Grade"].get() + N = window["Name"].get() + Table = window["table"].get() + print(Table) + + # Finish up by removing from the screen window.close()