minitest for wx.BusyInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
59ccbf7fec
commit
dc99f469f5
24
wxPython/tests/test_busyinfo.py
Normal file
24
wxPython/tests/test_busyinfo.py
Normal file
@ -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()
|
Loading…
Reference in New Issue
Block a user