This class is just like wx.BusyInfo
, except that its default
size is smaller, (unless the size of the message requires a larger window
size) and the background and foreground colors of the message box can be
set.
Creating an instace of the class will create and show a window with the given message, and when the instance is deleted then that window will be closed. This class also implements the context manager magic methods, so it can be used with Python’s with statement, like this:
with BusyInfo('Please wait...'):
doSomethingThatNeedsWaiting()
BusyInfo
(object)¶This class is just like wx.BusyInfo
, except that its default
size is smaller, (unless the size of the message requires a larger window
size) and the background and foreground colors of the message box can be
set.
Creating an instace of the class will create and show a window with the given message, and when the instance is deleted then that window will be closed. This class also implements the context manager magic methods, so it can be used with Python’s with statement, like this:
with BusyInfo('Please wait...'):
doSomethingThatNeedsWaiting()
__init__
(self, msg, parent=None, bgColour=None, fgColour=None)¶Create a new BusyInfo
.
Parameters: |
|
---|
Close
(self)¶Hide and close the busy info box.