My kivy popup does not appear on the screen until the rest of the code in my method finishes running. I am trying to display a progress bar so it is worthless in it's current state.
I have tried to thread the process to open the popup and tried without threading.
from kivy.uix.progressbar import ProgressBar
from kivy.uix.popup import Popup
import threading
def submit():
popup = Popup(title='Submit Progress', content=ProgressBar())
thread_object = threading.Thread(target=popup.open)
thread_object.start()
perform some iterable actions
increment progress bar value
if progress_bar.value == progress_bar.max:
popup.auto_dismiss = True
# This is when the popup finally appears
I need the open function of my popup to actually take effect before performing the iterable actions so the user can watch the progress