From d2157999823b030a9c2d70189118786844dce547 Mon Sep 17 00:00:00 2001 From: Josh b Date: Thu, 10 Nov 2022 17:52:40 -0800 Subject: [PATCH] Check Out function --- db.json | 2 +- main.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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()