Bug?
All checks were successful
Potlatch Loggers Organization/ComputerKeeper/pipeline/head This commit looks good

This commit is contained in:
Josh Biltonen 2022-11-06 18:57:53 -08:00
parent 41668d68b1
commit 9a74b78162

View File

@ -3,6 +3,7 @@
from copy import deepcopy
import PySimpleGUI as sg
from tinydb import TinyDB, Query
from logo_source import COMPUTER_KEEPER_LOGO
TABLE=None
WINDOW=None
@ -72,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)
window = sg.Window('Computer Keeper', layout, finalize=True, use_custom_titlebar=True, titlebar_icon=COMPUTER_KEEPER_LOGO)
WINDOW=window
window["table"].update(computer)
table = window['table'].Widget