diff --git a/README.md b/README.md index b0da9c0..2a97737 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,10 @@ Download from [releases](https://github.com/ProfFan/Snap2LaTeX/releases). Run the application. +The application will start downloading the model. It will take a few minutes. + +![](./images/downloading.png) + There will be an icon in the system tray. ![](./images/dock-icon.png) diff --git a/images/downloading.png b/images/downloading.png new file mode 100644 index 0000000..d25b574 Binary files /dev/null and b/images/downloading.png differ diff --git a/standalone_app/Snap2LaTeX.py b/standalone_app/Snap2LaTeX.py index dbdf4a0..de7147d 100644 --- a/standalone_app/Snap2LaTeX.py +++ b/standalone_app/Snap2LaTeX.py @@ -18,6 +18,7 @@ import multiprocessing as mp + class StdoutQueue(Queue): def __init__(self, maxsize=-1, block=True, timeout=None): self.block = block @@ -54,6 +55,9 @@ def app_show_progress(model_name): progress.setWindowModality(Qt.WindowModality.WindowModal) # disable the cancel button progress.setCancelButton(None) + progress.setWindowFlags( + Qt.WindowType.CustomizeWindowHint | Qt.WindowType.WindowTitleHint + ) while load_process.is_alive(): while not q.empty(): @@ -74,6 +78,7 @@ def app_show_progress(model_name): app.quit() print("Model check complete.") + if __name__ == "__main__": mp.freeze_support()