This file contains the SVN revision history for pybusyinfo, at revision 68881.
Available information include commit date, the name of the committer, the file size, the SVN log messages and a diff from the previous version (if available).
The following log message was entered by the committer:
AGW: General overhaul of the documentation, much improved. All the widgets have their own sample usage in the docs as well;
FlatNotebook: Added the FNB_NAV_BUTTONS_WHEN_NEEDED style, which hides the navigation left/right arrows if all tabs fit;
RibbonBar: - Added the EVT_RIBBONBAR_TAB_LEFT_DCLICK event, which generates a special event
when a ribbon bar tab is double-clicked;
XLSGrid: a new widget was added to AGW, termed XLSGrid. It’s based on wx.grid.Grid and can be used to faithfully reproduce the appearance of a Microsoft Excel spreadsheets.
Version SVN diff:
--- wxPython/3rdParty/AGW/agw/pybusyinfo.py 2010/01/09 21:39:59 63107
+++ wxPython/3rdParty/AGW/agw/pybusyinfo.py 2011/08/25 16:40:17 68881
@@ -1,14 +1,14 @@
"""
-PyBusyInfo constructs a busy info window and displays a message in it.
+L{PyBusyInfo} constructs a busy info window and displays a message in it.
Description
===========
-PyBusyInfo constructs a busy info window and displays a message in it.
+L{PyBusyInfo} constructs a busy info window and displays a message in it.
This class makes it easy to tell your user that the program is temporarily busy.
-Just create a PyBusyInfo object, and within the current scope, a message window
+Just create a L{PyBusyInfo} object, and within the current scope, a message window
will be shown.
For example::
@@ -26,10 +26,55 @@
it had been obscured by other windows, for example).
+Usage
+=====
+
+Usage example::
+
+ import wx
+ import wx.lib.agw.pybusyinfo as PBI
+
+ class MyFrame(wx.Frame):
+
+ def __init__(self, parent):
+
+ wx.Frame.__init__(self, parent, -1, "PyBusyInfo Demo")
+
+ panel = wx.Panel(self)
+
+ b = wx.Button(panel, -1, "Test PyBusyInfo ", (50,50))
+ self.Bind(wx.EVT_BUTTON, self.OnButton, b)
+
+
+ def OnButton(self, event):
+
+ message = "Please wait 5 seconds, working..."
+ busy = PBI.PyBusyInfo(message, parent=self, title="Really Busy")
+
+ wx.Yield()
+
+ for indx in xrange(5):
+ wx.MilliSleep(1000)
+
+ del busy
+
+
+ # our normal wxApp-derived class, as usual
+
+ app = wx.PySimpleApp()
+
+ frame = MyFrame(None)
+ app.SetTopWindow(frame)
+ frame.Show()
+
+ app.MainLoop()
+
+
+
Supported Platforms
===================
-PyBusyInfo has been tested on the following platforms:
+L{PyBusyInfo} has been tested on the following platforms:
* Windows (Windows XP).
@@ -48,7 +93,7 @@
License And Version
===================
-PyBusyInfo is distributed under the wxPython license.
+L{PyBusyInfo} is distributed under the wxPython license.
Latest Revision: Andrea Gavana @ 03 Dec 2009, 09.00 GMT