From d6f52c917e9c80b7b118b1782edc3b38cc3205ba Mon Sep 17 00:00:00 2001 From: Axel Svensson Date: Sat, 13 Jul 2024 11:26:13 +0000 Subject: [PATCH] Adaptive initial window size --- pdf-sign | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf-sign b/pdf-sign index 8ecb1a7..15e95ca 100755 --- a/pdf-sign +++ b/pdf-sign @@ -256,7 +256,7 @@ def main(args): root._docView.place(x=docViewMargin, y=docViewMargin) root._docViewIndex=root._docView.create_image(0, 0, anchor=tk.NW) root.bind('', onRootResize) - root.geometry("800x600") + root.geometry(f"{int(root.winfo_screenwidth()*2/3)}x{int(root.winfo_screenheight()*2/3)}") @Cell def updateTitle(): root.title(f'Signing page {pageNumber()}/{pageCount} of {filePath}')