AlJohri / docx2pdf

MIT License
497 stars 94 forks source link

Can't hide console with PyInstaller #83

Open SHIINA96 opened 1 year ago

SHIINA96 commented 1 year ago

when using pyinstaller to package with docx2pdf it has to use a console once hide console, the convert won't start it's annoying to have another window at the same time, is the any way to run the convert without console and progress bar?

also how can i have some feedback when using batch? like total number and current state instead show everything with a progress bar?

wouterpeere commented 1 year ago

I have the same issue.

I placed this code in the function where the converting was taking place:

from tqdm import tqdm from functools import partialmethod

tqdm.init = partialmethod(tqdm.init, disable=True)

It overwrites the init function of the progressbar and disables it. (https://stackoverflow.com/a/67238486)