Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: fix progress bar on python 3.10+
Apparently python 3.10 no longer silently truncates floats to ints, (see python/cpython#82180) Current code passes a float to the wxGauge progress bar, which then prints (not) tracebacks like: TypeError: Gauge.SetValue(): argument 1 has unexpected type 'float' Traceback (most recent call last): File "/usr/lib64/python3.10/site-packages/wx/core.py", line 3285, in <lambda> lambda event: event.callable(*event.args, **event.kw) ) At least someone is catching and ignoring the exception, so the app works, just the progress bar is broken. It just needs to be explicitly forced to an int to make it work again Signed-off-by: Karl Palsson <karlp@etactica.com>
- Loading branch information