Resize
This commit is contained in:
parent
23ef2b3079
commit
f35fda439d
4
main.py
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user