app/home_page.py
def check_process(self, process):
        """Update Home Page GUI window (load a bar),
        whenever a fighter has been successfully updated."""

        if not process.is_alive():                    # Process is done. Update GUI.
            print(
                "we're done with one sir  =  ", process.name
            )

            # join process, increase index
            process.join()
            self.index += 1

            # update GUI bar
            self.update_process_bar.configure(value=self.index)

            # update GUI text
            self.canvas_background.itemconfigure(
                tagOrId=self.update_process_text,
                text=f"{self.index}/{self.amount_of_fighters}")

            # if all the processes have ended
            if self.index == self.amount_of_fighters:
                total_update_time = round(
                    time.perf_counter() - self.counter
                )
                messagebox.showinfo(
                    title='Success!!!',
                    message="All fighters have successfully went through the update process in "
                            f"{total_update_time} seconds!")
                self.index = 0
                self.counter = None

        else:                                         # Not done yet. Check again later.
            self.master.after(
                5000, self.check_process, process
            )
Update Home Page GUI window (load a bar),
        whenever a fighter has been successfully updated.
Update Home Page GUI window (load a bar),
whenever a fighter has been successfully updated.
Update Home Page GUI window ( load a bar ) whenever a fighter has been successfully updated .
def check_process(self, process):
        if not process.is_alive():                    
            print(
                "we're done with one sir  =  ", process.name
            )
            process.join()
            self.index += 1
            self.update_process_bar.configure(value=self.index)
            self.canvas_background.itemconfigure(
                tagOrId=self.update_process_text,
                text=f"{self.index}/{self.amount_of_fighters}")
            if self.index == self.amount_of_fighters:
                total_update_time = round(
                    time.perf_counter() - self.counter
                )
                messagebox.showinfo(
                    title='Success!!!',
                    message="All fighters have successfully went through the update process in "
                            f"{total_update_time} seconds!")
                self.index = 0
                self.counter = None
        else:                                         
            self.master.after(
                5000, self.check_process, process
            )
def check_process ( self , process ) : if not process . is_alive ( ) : print ( "we're done with one sir  =  " , process . name ) process . join ( ) self . index += 1 self . update_process_bar . configure ( value = self . index ) self . canvas_background . itemconfigure ( tagOrId = self . update_process_text , text = f"{self.index}/{self.amount_of_fighters}" ) if self . index == self . amount_of_fighters : total_update_time = round ( time . perf_counter ( ) - self . counter ) messagebox . showinfo ( title = 'Success!!!' , message = "All fighters have successfully went through the update process in " f"{total_update_time} seconds!" ) self . index = 0 self . counter = None else : self . master . after ( 5000 , self . check_process , process )
Update Home Page GUI window (load a bar),
whenever a fighter has been successfully updated.
Update Home Page GUI window ( load a bar ) whenever a fighter has been successfully updated .
"""Update Home Page GUI window (load a bar),
        whenever a fighter has been successfully updated.""" # Process is done. Update GUI. # join process, increase index # update GUI bar # update GUI text # if all the processes have ended # Not done yet. Check again later.
self
process