2 from wxPython
.wx
import *
4 #---------------------------------------------------------------------------
6 def runTest(frame
, nb
, log
):
8 dlg
= wxProgressDialog("Progress dialog example",
9 "An informative message",
12 wxPD_CAN_ABORT | wxPD_APP_MODAL
)
16 while keepGoing
and count
< max:
21 keepGoing
= dlg
.Update(count
, "Half-time!")
23 keepGoing
= dlg
.Update(count
)
28 #---------------------------------------------------------------------------
38 if __name__
== '__main__':
41 run
.main(['', os
.path
.basename(sys
.argv
[0])])