Dabo.ui.busyInfo

From Dabo Wiki
Revision as of 14:30, 14 May 2020 by Ed (talk | contribs) (Created page with "== Signature: == <syntaxhighlight lang="python"> dabo.ui.busyInfo(msg="Please wait...", *args, **kwargs) </syntaxhighlight> == Description: == Displays a small window contai...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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()