Package mrv :: Package maya :: Package ui :: Module dialog :: Class ProgressWindow
[hide private]
[frames] | no frames]

Class ProgressWindow

source code

              object --+        
                       |        
     interface.Interface --+    
                           |    
interface.iProgressIndicator --+
                               |
                              ProgressWindow

Simple progress window wrapping the default maya progress window
Instance Methods [hide private]

Inherited from interface.Interface: supports

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

    Initialization
 
__init__(self, **kwargs)
Everything that iProgress indicator and Maya Progress Window support
source code
 
begin(self)
Show our window
source code
 
end(self)
Close the progress window
source code
    Edit
 
refresh(self, message=None)
Finally show the progress window
source code
 
setAbortable(self, state)
If state is True, the progress may be interrupted, if false it cannot be interrupted
source code

Inherited from interface.iProgressIndicator: set, setRange, setRelative, setRoundRobin, setup

    Query
 
isCancelRequested(self)
Returns: True if the action should be cancelled, False otherwise
source code
 
isAbortable(self)
:return : true if the process can be aborted
source code

Inherited from interface.iProgressIndicator: get, isRelative, prefix, range, roundRobin, value

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 
Everything that iProgress indicator and Maya Progress Window support
Parameters:
  • min - the minimum progress value
  • max - the maximum progress value
  • is_relative - if True, the values given will be scaled to a range of 0-100, if False no adjustments will be done
  • round_robin - see setRoundRobin
  • kwargs - additional arguments being ignored
Overrides: object.__init__

refresh(self, message=None)

source code 
Finally show the progress window
Parameters:
  • message - message passed along by the user
Overrides: interface.iProgressIndicator.refresh

begin(self)

source code 
Show our window
Overrides: interface.iProgressIndicator.begin

end(self)

source code 
Close the progress window
Overrides: interface.iProgressIndicator.end

isCancelRequested(self)

source code 
Returns:
True if the action should be cancelled, False otherwise
Overrides: interface.iProgressIndicator.isCancelRequested

isAbortable(self)

source code 
:return : true if the process can be aborted
Returns:
True if the process may be cancelled
Overrides: interface.iProgressIndicator.isAbortable

setAbortable(self, state)

source code 
If state is True, the progress may be interrupted, if false it cannot be interrupted
Overrides: interface.iProgressIndicator.setAbortable
(inherited documentation)