Qt's QProgressDialog implements the minimumDuration property (https://doc.qt.io/qt-5/qprogressdialog.html#minimumDuration-prop) which is documented as follows:
This property holds the time that must pass before the dialog appears
If the expected duration of the task is less than the minimumDuration, the dialog will not appear at all. This prevents the dialog popping up for tasks that are quickly over. For tasks that are expected to exceed the minimumDuration, the dialog will pop up after the minimumDuration time or as soon as any progress is set.
If set to 0, the dialog is always shown as soon as any progress is set. The default is 4000 milliseconds.
I believe this would be a nice feature to have in tqdm as well (obviously its default value would have to be zero for backcompat).
read the known issues
environment, where applicable:
Qt's QProgressDialog implements the
minimumDurationproperty (https://doc.qt.io/qt-5/qprogressdialog.html#minimumDuration-prop) which is documented as follows:I believe this would be a nice feature to have in tqdm as well (obviously its default value would have to be zero for backcompat).