1999-06-22 07:03:29 +00:00
|
|
|
|
|
|
|
from wxPython.wx import *
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
def runTest(frame, nb, log):
|
|
|
|
max = 20
|
|
|
|
dlg = wxProgressDialog("Progress dialog example",
|
|
|
|
"An informative message",
|
|
|
|
max,
|
|
|
|
frame,
|
|
|
|
wxPD_CAN_ABORT | wxPD_APP_MODAL)
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
keepGoing = True
|
1999-06-22 07:03:29 +00:00
|
|
|
count = 0
|
2002-08-13 23:59:08 +00:00
|
|
|
while keepGoing and count < max:
|
1999-06-22 07:03:29 +00:00
|
|
|
count = count + 1
|
|
|
|
wxSleep(1)
|
|
|
|
|
|
|
|
if count == max / 2:
|
|
|
|
keepGoing = dlg.Update(count, "Half-time!")
|
|
|
|
else:
|
|
|
|
keepGoing = dlg.Update(count)
|
|
|
|
|
|
|
|
dlg.Destroy()
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-07-02 23:13:10 +00:00
|
|
|
overview = """\
|
|
|
|
"""
|
1999-06-22 07:03:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2003-07-02 23:13:10 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
import sys,os
|
|
|
|
import run
|
|
|
|
run.main(['', os.path.basename(sys.argv[0])])
|