notebookvb

This commit is contained in:
Vladimir Buzalka
2026-05-04 21:26:44 +02:00
parent 417cf86b2d
commit ffb3db1e07
12 changed files with 1143 additions and 16 deletions
+5 -1
View File
@@ -17,7 +17,8 @@ def main():
try:
from PIL import Image, ImageTk
import fitz
except ImportError:
except ImportError as e:
print(f"[preview_viewer] Chybí knihovna: {e}", file=sys.stderr)
sys.exit(2)
suffix = pdf_path.suffix.lower()
@@ -104,6 +105,9 @@ def main():
geom_path.write_text(_json.dumps({"x": x, "y": 0, "w": w, "h": h}), encoding="utf-8")
break
root.lift()
root.focus_force()
root.after(100, lambda: root.focus_force())
root.mainloop()