From ea35eaca2e7751033f94b3f9855e27cf4ee563ba Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Tue, 7 Feb 2023 22:38:02 -0700 Subject: [PATCH] gui_main.py: Ensure passed values are integers --- resources/gui/gui_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/gui/gui_main.py b/resources/gui/gui_main.py index a3472f18a..c53294fdd 100644 --- a/resources/gui/gui_main.py +++ b/resources/gui/gui_main.py @@ -1328,7 +1328,7 @@ class wx_python_gui: ) self.developer_note.Centre(wx.HORIZONTAL) - self.progress_bar.SetValue(kdk_download_obj.get_percent()) + self.progress_bar.SetValue(int(kdk_download_obj.get_percent())) wx.GetApp().Yield() time.sleep(0.1) @@ -1847,7 +1847,7 @@ class wx_python_gui: ) self.download_label_2.Centre(wx.HORIZONTAL) - self.download_progress.SetValue(ia_download.get_percent()) + self.download_progress.SetValue(int(ia_download.get_percent())) wx.GetApp().Yield() time.sleep(0.1)