<s> """<STR_LIT>""" <EOL> from traits . api import Any , Bool , Int , Str <EOL> from pyface . i_dialog import IDialog <EOL> class IProgressDialog ( IDialog ) : <EOL> """<STR_LIT>""" <EOL> message = Str <EOL> min = Int <EOL> max = Int <EOL> margin = Int ( <NUM_LIT:5> ) <EOL> can_cancel = Bool ( False ) <EOL> show_time = Bool ( False ) <EOL> show_percent = Bool ( False ) <EOL> cancel_button_label = Str <EOL> def update ( self , value ) : <EOL> """<STR_LIT>""" <EOL> def change_message ( self , message ) : <EOL> """<STR_LIT>""" <EOL> class MProgressDialog ( object ) : <EOL> """<STR_LIT>""" <EOL> progress_bar = Any <EOL> def update ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if self . progress_bar is not None : <EOL> self . progress_bar . update ( value ) <EOL> if value >= self . max : <EOL> self . close ( ) <EOL> def change_message ( self , message ) : <EOL> """<STR_LIT>""" <EOL> self . message = message </s>
