Dabo.ui.busyInfo

From Dabo Wiki
Jump to: navigation, search

Signature:

dabo.ui.busyInfo(msg="Please wait...", *args, **kwargs)

Description:

Displays a small window containing your message to the user to let them know that the system is busy doing other processing.


Returns:

A reference to a wxPython BusyInfo instance. Destroying this reference removes the message window.

Examples:

You have a long-running process for which you need to wait until it completes. You don't want your users to think that the application has hung, so you display a busyWindow with an appropriate message.

bi = dabo.ui.busyInfo("Please wait while I count to 10000...")
for i in range(10000):
        pass
# Destroy the reference to clear the window
bi = None

self.refresh()