#
Loading
Warning
This page is meant for developers
#
Directly usable functions and values
from src.loading import LoadingWindow
# Make a new loading window
loading = LoadingWindow("Running heavy task...")
while not heavyTaskDone:
# Do heavy task
loading.update(progress=heavyTaskProgress, text=f"Running heavy task... {round(heavyTaskProgress,1)}%")
# When done
loading.destroy()
#
Description
Provides an easy to use loading window for heavy tasks. It's quite simple to use just by looking at the example code above.