debug print photo load time

Dieser Commit ist enthalten in:
Axel Svensson 2024-07-13 17:03:19 +00:00
Ursprung b2531a89e4
Commit bfab36ece4

Datei anzeigen

@ -283,7 +283,10 @@ def main(args):
if not updateActive: if not updateActive:
return return
(w, h) = displaySize() (w, h) = displaySize()
root._docImg = tk.PhotoImage(file=str(displayPNG())) filename = str(displayPNG())
before = time.time()
root._docImg = tk.PhotoImage(file=filename)
print(f"Debug: Loading photo image took {time.time()-before:.2f} seconds", flush=True)
root._docView.itemconfig(root._docViewIndex, image=root._docImg) root._docView.itemconfig(root._docViewIndex, image=root._docImg)
root._docView.configure(width=w, height=h) root._docView.configure(width=w, height=h)
updateTitle() updateTitle()