progressDialog(QWidget*)

Parent Previous Next

TW.progressDialog(QWidget*)


"The attached patch adds a progress dialog to the dialogs available to scripts. Create
it by:
d = TW.progressDialog( parent )
Then, you can set the range by
d.setRange( min, max )
the label (indicating what the script is currently doing) by
d.setLabelText( str )
and the current value by
d.setValue( val )

The dialog will open when it is created, and will close when the max value of the
range is reached (you can also close it prematurely by d.reset()).
Note: Right now, the cancel button is removed from the dialog as there is no default
way to determine whether it was clicked or not from a script.

http://code.google.com/p/texworks/issues/detail?id=221



N.B. This dialogue needs to call .deleteLater() when you are finished with it.

      e.g.

            d.deleteLater();


See bottom of  http://tug.org/mailman/htdig/texworks/2011q2/004415.html




Created with the Personal Edition of HelpNDoc: Easily create Web Help sites