From: Robin Dunn Date: Sat, 23 Dec 2006 00:12:59 +0000 (+0000) Subject: minitest for wx.BusyInfo X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dc99f469f555a8aed7a16e86e886257030229050?ds=inline minitest for wx.BusyInfo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/tests/test_busyinfo.py b/wxPython/tests/test_busyinfo.py new file mode 100644 index 0000000000..88ec18d072 --- /dev/null +++ b/wxPython/tests/test_busyinfo.py @@ -0,0 +1,24 @@ +import wx +import time + +print wx.version() + + +def OnButton(evt): + bi = wx.BusyInfo("This is a wx.BusyInfo widget...") + + # This yield is needed on wxGTK in order to see the text. Is + # there a way around this? + if "wxGTK" in wx.PlatformInfo: + wx.Yield(); wx.Yield() + + time.sleep(5) + + +app = wx.App() +frm = wx.Frame(None) +pnl = wx.Panel(frm) +btn = wx.Button(pnl, label="Click me", pos=(10,10)) +btn.Bind(wx.EVT_BUTTON, OnButton) +frm.Show() +app.MainLoop()