notebookvb
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user