#NEWLINE# def __init__( self , parent , id , repo , remote , commit , remoteBranch , forcePush ) : #NEWLINE# #INDENT# self . parent = parent #NEWLINE# self . repo = remote #NEWLINE# self . remote = remote #NEWLINE# self . commit = commit #NEWLINE# self . remoteBranch = remoteBranch #NEWLINE# self . forcePush = forcePush #NEWLINE# self . dialog = LoadDialog ( parent , 'PushProgressDialog' ) #NEWLINE# self . dialog . SetMinSize ( ( 350 , ( - 1 ) ) ) #NEWLINE# self . dialog . SetTitle ( ( 'Pushing to %s...' % remote ) ) #NEWLINE# self . progressLabel = GetWidget ( self . dialog , 'progressLabel' ) #NEWLINE# self . progressBar = GetWidget ( self . dialog , 'progressBar' ) #NEWLINE# SetupEvents ( self . dialog , [ ( 'cancelButton' , wx . EVT_BUTTON , self . OnCancel ) ] )