;ò 4)qBc @ s’ d k Z d e i f d „ ƒ YZ d „ Z d Z e d j oP d k Z d k Z d k Z e i d e i i e i d ƒ g e i d ƒ n d S( Ns TestPanelc B s t Z d „ Z d „ Z RS( Nc C sZ | | _ t i i | | d ƒ t i | d d d d f ƒ } | i t i | i | ƒ d S( Niÿÿÿÿs Create and Show a ProgressDialogi2 ( s logs selfs wxs Panels __init__s parents Buttons bs Binds EVT_BUTTONs OnButton( s selfs parents logs b( ( sn /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ProgressDialog.pys __init__ s c C sÅ d } t i d d d | d | d t i t i Bt i Bt i Bƒ} t } d } xf | o | | j oQ | d 7} t i d ƒ | | d j o | i | d ƒ } qQ | i | ƒ } qQ W| i ƒ d S( NiP s Progress dialog examples An informative messages maximums parents stylei i iú i s Half-time!( s maxs wxs ProgressDialogs selfs PD_CAN_ABORTs PD_APP_MODALs PD_ELAPSED_TIMEs PD_REMAINING_TIMEs dlgs Trues keepGoings counts MilliSleeps Updates Destroy( s selfs evts counts dlgs maxs keepGoing( ( sn /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ProgressDialog.pys OnButton s $ ( s __name__s __module__s __init__s OnButton( ( ( sn /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ProgressDialog.pys TestPanel s c C s t | | ƒ } | Sd S( N( s TestPanels nbs logs win( s frames nbs logs win( ( sn /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ProgressDialog.pys runTest7 s sƒ
This class represents a dialog that shows a short message and a progress bar. Optionally, it can display an ABORT buttonThis dialog indicates the progress of some event that takes a while to accomplish, usually, such as file copy progress, download progress, and so on. The display is completely under control of the program; you must update the dialog from within the program creating it.
When the dialog closes, you must check to see if the user aborted the process or not, and act accordingly -- that is, if the PD_CAN_ABORT style flag is set. If not then you may progress blissfully onward. s __main__s i i ( s wxs Panels TestPanels runTests overviews __name__s syss oss runs mains paths basenames argv( s syss runs overviews runTests wxs oss TestPanel( ( sn /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ProgressDialog.pys ? s (