work better (or at all) on wxMac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			39 lines
		
	
	
		
			767 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			767 B
		
	
	
	
		
			Python
		
	
	
	
	
	
 | 
						|
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)
 | 
						|
 | 
						|
    keepGoing = true
 | 
						|
    count = 0
 | 
						|
    while keepGoing and count < max:
 | 
						|
        count = count + 1
 | 
						|
        wxSleep(1)
 | 
						|
 | 
						|
        if count == max / 2:
 | 
						|
            keepGoing = dlg.Update(count, "Half-time!")
 | 
						|
        else:
 | 
						|
            keepGoing = dlg.Update(count)
 | 
						|
 | 
						|
    dlg.Destroy()
 | 
						|
 | 
						|
 | 
						|
#---------------------------------------------------------------------------
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
overview = """\
 | 
						|
"""
 |