Phoenix Logo

phoenix_title wx.lib.agw.pybusyinfo.PyBusyInfo

Constructs a busy info window as child of parent and displays a message in it.


class_hierarchy Class Hierarchy

Inheritance diagram for class PyBusyInfo:

appearance Control Appearance


wxMSW

wxMSW

wxMAC

wxMAC

wxGTK

wxGTK


method_summary Methods Summary

__init__ Default class constructor.
Show Shows or hides the window.
Update Calling this method immediately repaints the invalidated area of the window and all of its

api Class API



class PyBusyInfo(object)

Constructs a busy info window as child of parent and displays a message in it.


Methods



__init__(self, message, parent=None, title=_("Busy"), icon=wx.NullBitmap)

Default class constructor.

Parameters:
  • parent – the PyBusyInfo parent;
  • message – the message to display in the PyBusyInfo;
  • title – the main PyBusyInfo title;
  • icon – an icon to draw as the frame icon, an instance of wx.Bitmap.

Note

If parent is not None you must ensure that it is not closed while the busy info is shown.



Show(self, show=True)

Shows or hides the window.

You may need to call Raise for a top level window if you want to bring it to top, although this is not needed if PyBusyInfo.Show is called immediately after the frame creation.

Parameters:show (bool) – True to show the PyBusyInfo frame, False to hide it.
Returns:True if the window has been shown or hidden or False if nothing was done because it already was in the requested state.

Note

Notice that the default state of newly created top level windows is hidden (to allow you to create their contents without flicker) unlike for all the other, not derived from TopLevelWindow, windows that are by default created in the shown state.

New in version 0.9.5.



Update(self)

Calling this method immediately repaints the invalidated area of the window and all of its children recursively (this normally only happens when the flow of control returns to the event loop).

Note

Notice that this function doesn’t invalidate any area of the window so nothing happens if nothing has been invalidated (i.e. marked as requiring a redraw). Use Refresh first if you want to immediately redraw the window unconditionally.

New in version 0.9.5.