diff --git a/main.py b/main.py index f54638b..e52e240 100644 --- a/main.py +++ b/main.py @@ -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 Grade"), 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.Input(key='Serial Number')], [sg.Text("Brand")], @@ -73,7 +73,7 @@ def main(): db= TinyDB("./db.json") computer = format_table(db.all()) # 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["table"].update(computer) table = window['table'].Widget