This commit is contained in:
Josh Biltonen 2022-11-10 17:24:34 -08:00
parent 23ef2b3079
commit f35fda439d

View File

@ -16,7 +16,7 @@ layout = [[sg.Menu([['File', ['Open', 'Save', 'Add Computer','Remove Computer']]
sg.Input(s=(6,),enable_events=True,key="filter Brand"), sg.Input(s=(6,),enable_events=True,key="filter Brand"),
sg.Input(s=(6,),enable_events=True,key="filter Grade"), sg.Input(s=(6,),enable_events=True,key="filter Grade"),
sg.Input(s=(4,),enable_events=True,key="filter Name")], sg.Input(s=(4,),enable_events=True,key="filter Name")],
[sg.Table([["word","Yes"]],colum_lut,key = "table", enable_events=True)], [sg.Table([["word","Yes"]],colum_lut,key = "table", enable_events=True, expand_x = True, expand_y =True)],
[sg.Text("Serial Number")], [sg.Text("Serial Number")],
[sg.Input(key='Serial Number')], [sg.Input(key='Serial Number')],
[sg.Text("Brand")], [sg.Text("Brand")],
@ -73,7 +73,7 @@ def main():
db= TinyDB("./db.json") db= TinyDB("./db.json")
computer = format_table(db.all()) computer = format_table(db.all())
# Create the window # Create the window
window = sg.Window('Computer Keeper', layout, finalize=True, icon=COMPUTER_KEEPER_LOGO) window = sg.Window('Computer Keeper', layout, finalize=True, icon=COMPUTER_KEEPER_LOGO, resizable = True)
WINDOW=window WINDOW=window
window["table"].update(computer) window["table"].update(computer)
table = window['table'].Widget table = window['table'].Widget