debug print photo load time
Dieser Commit ist enthalten in:
Ursprung
b2531a89e4
Commit
bfab36ece4
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
5
pdf-sign
5
pdf-sign
|
@ -283,7 +283,10 @@ def main(args):
|
|||
if not updateActive:
|
||||
return
|
||||
(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.configure(width=w, height=h)
|
||||
updateTitle()
|
||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren