Package gen :: Package utils :: Module progressmon :: Class ProgressMonitor
[frames] | no frames]

Class ProgressMonitor

source code


A dialog for displaying the status of long running operations.

It will work with gen.utils.LongOpStatus objects to track the progress of long running operations. If the operations is going to take longer than popup_time it will pop up a dialog with a progress bar so that the user gets some feedback about what is happening.

Instance Methods
 
__init__(self, dialog_class, dialog_class_params=(), title='Progress Information', popup_time=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
add_op(self, op_status)
Add a new status object to the progress dialog.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, dialog_class, dialog_class_params=(), title='Progress Information', popup_time=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • dialog_class (_GtkProgressDialog or the same interface.) - A class used to display the progress dialog.
  • dialog_class_params (tuple) - A tuple that will be used as the initial arguments to the dialog_class, this might be used for passing in a parent window handle.
  • title (string) - The title of the progress dialog
  • popup_time (int) - number of seconds to wait before popup.
Overrides: object.__init__

add_op(self, op_status)

source code 

Add a new status object to the progress dialog.

Parameters: