]> git.saurik.com Git - wxWidgets.git/blame - wxPython/tests/test_busyinfo.py
wx.IconBundle support
[wxWidgets.git] / wxPython / tests / test_busyinfo.py
CommitLineData
dc99f469
RD
1import wx
2import time
3
4print wx.version()
5
6
7def OnButton(evt):
8 bi = wx.BusyInfo("This is a wx.BusyInfo widget...")
9
10 # This yield is needed on wxGTK in order to see the text. Is
11 # there a way around this?
12 if "wxGTK" in wx.PlatformInfo:
13 wx.Yield(); wx.Yield()
14
15 time.sleep(5)
16
17
18app = wx.App()
19frm = wx.Frame(None)
20pnl = wx.Panel(frm)
21btn = wx.Button(pnl, label="Click me", pos=(10,10))
22btn.Bind(wx.EVT_BUTTON, OnButton)
23frm.Show()
24app.MainLoop()